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); ```