Skip to content

Commit

Permalink
fix(docs): 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 258b673 commit d67e7c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand All @@ -46,7 +46,7 @@ const user = cast<User>({
});
console.log(user);

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

Expand Down

0 comments on commit d67e7c9

Please sign in to comment.