Skip to content

Commit

Permalink
fix(website): modify broken reflection example (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelhorn authored Aug 1, 2024
1 parent 1e0d489 commit 7ee0a75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ interface User {
birthDate?: Date;
}

const user = cast<User>(User, {
const user = cast<User>({
username: 'Peter',
birthDate: '2010-10-10T00:00:00Z'
});
console.log(user);

const reflection = ReflectionClass.from(User);
const reflection = ReflectionClass.from<User>();
console.log(reflection.getProperty('username').type);
```

Expand Down

0 comments on commit 7ee0a75

Please sign in to comment.