From a6445e4c84fb047f086f25455d02eea2ed9cfcc1 Mon Sep 17 00:00:00 2001 From: Lionel Date: Thu, 11 Jul 2024 12:56:41 +0200 Subject: [PATCH] fix(website): 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 058ba6402..319576ae2 100644 --- a/website/src/pages/documentation/runtime-types/getting-started.md +++ b/website/src/pages/documentation/runtime-types/getting-started.md @@ -40,13 +40,13 @@ interface User { birthDate?: Date; } -const user = cast(User, { +const user = cast({ username: 'Peter', birthDate: '2010-10-10T00:00:00Z' }); console.log(user); -const reflection = ReflectionClass.from(User); +const reflection = ReflectionClass.from(); console.log(reflection.getProperty('username').type); ```