Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): modify broken reflection example #559

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lionelhorn
Copy link
Contributor

Summary of changes

Fixed code and imports of example

Relinquishment of Rights

Please mark following checkbox to confirm that you relinquish all rights of your changes:

  • I waive and relinquish all rights regarding this changes (including code, text, and images) to Deepkit UG (limited), Germany. This changes (including code, text, and images) are under MIT license without name attribution, copyright notice, and permission notice requirement.

username: 'Peter',
birthDate: '2010-10-10T00:00:00Z'
});
console.log(user);

const reflection = ReflectionClass.from(User);
const reflection = ReflectionClass.from(typeOf<User>());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const reflection = ReflectionClass.from(typeOf<User>());
const reflection = ReflectionClass.from<User>();

@@ -33,20 +33,20 @@ Write your first code with runtime type information:
_File: app.ts_

```typescript
import { cast, MinLength, ReflectionClass } from '@deepkit/type';
import { cast, MinLength, ReflectionClass, typeOf } from '@deepkit/type';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { cast, MinLength, ReflectionClass, typeOf } from '@deepkit/type';
import { cast, MinLength, ReflectionClass } from '@deepkit/type';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants