Skip to content

Commit

Permalink
style(types): update tsdoc example for "DocumentType"
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Feb 19, 2023
1 parent f1bd331 commit 33fa48e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types.ts
Expand Up @@ -5,7 +5,10 @@ import type { Severity, PropType } from './internal/constants';
* Get the Type of an instance of a Document with Class properties
* @example
* ```ts
* class ClassName {}
* class ClassName {
* @prop()
* public someProperty: string;
* }
* const NameModel = getModelForClass(ClassName);
*
* const doc: DocumentType<ClassName> = await NameModel.create({});
Expand Down

0 comments on commit 33fa48e

Please sign in to comment.