From d67e7c94cd1280cfb12a377ad3c743c874d71da3 Mon Sep 17 00:00:00 2001 From: Lionel Date: Thu, 11 Jul 2024 12:39:56 +0200 Subject: [PATCH] fix(docs): modify broken reflection example --- .../src/pages/documentation/runtime-types/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/pages/documentation/runtime-types/getting-started.md b/website/src/pages/documentation/runtime-types/getting-started.md index 5da7afffa..319576ae2 100644 --- a/website/src/pages/documentation/runtime-types/getting-started.md +++ b/website/src/pages/documentation/runtime-types/getting-started.md @@ -33,7 +33,7 @@ Write your first code with runtime type information: _File: app.ts_ ```typescript -import { cast, MinLength, ReflectionClass, typeOf } from '@deepkit/type'; +import { cast, MinLength, ReflectionClass } from '@deepkit/type'; interface User { username: string & MinLength<3>; @@ -46,7 +46,7 @@ const user = cast({ }); console.log(user); -const reflection = ReflectionClass.from(typeOf()); +const reflection = ReflectionClass.from(); console.log(reflection.getProperty('username').type); ```