Skip to content

Commit

Permalink
fix(website): modify broken reflection example
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelhorn committed Jul 11, 2024
1 parent 1e0d489 commit a6445e4
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 a6445e4

Please sign in to comment.