Skip to content

Commit

Permalink
Updated query typings
Browse files Browse the repository at this point in the history
  • Loading branch information
artus9033 committed Nov 23, 2020
1 parent 778c9af commit 054f6a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ var merge = require("merge");

export type ModelTypeBase = { _id: string };
export type CollectionType<ModelType extends ModelTypeBase = ModelTypeBase> = Array<ModelType>;
export type QueryType<ModelType extends ModelTypeBase> = Partial<ModelType> | undefined | null;
export type QueryType<ModelType extends ModelTypeBase> =
| Partial<EnrichModelType<ModelType>>
| undefined
| null;
export type EnrichModelType<ModelType> = ModelType & ModelTypeBase;

export class util {
Expand Down

0 comments on commit 054f6a8

Please sign in to comment.