Skip to content

Commit

Permalink
Export ShapeQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg authored Oct 26, 2022
1 parent 133132b commit cd6b65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type ValueQuery<TValue> = TValue extends Array<any>
: BasicValueQuery<TValue>;

type NotObject = string | number | Date | boolean | Array<any>;
type ShapeQuery<TItemSchema> = TItemSchema extends NotObject
export type ShapeQuery<TItemSchema> = TItemSchema extends NotObject
? {}
: { [k in keyof TItemSchema]?: TItemSchema[k] | ValueQuery<TItemSchema[k]> };

Expand Down

0 comments on commit cd6b65d

Please sign in to comment.