Skip to content

Commit

Permalink
fix(): fix schema definition typings
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 5, 2021
1 parent 4f148b5 commit 3811fcb
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 16,707 deletions.
4 changes: 2 additions & 2 deletions lib/decorators/prop.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const TYPE_METADATA_KEY = 'design:type';
/**
* Interface defining property options that can be passed to `@Prop()` decorator.
*/
export type PropOptions =
| mongoose.SchemaDefinition['string']
export type PropOptions<T = any> =
| Partial<mongoose.SchemaDefinitionProperty<T>>
| mongoose.SchemaType;

/**
Expand Down
Loading

0 comments on commit 3811fcb

Please sign in to comment.