Skip to content

Commit

Permalink
added QueryKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Oct 30, 2022
1 parent 77a7e22 commit ca48bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ type BasicValueQuery<TValue> = {
$and?: NestedQuery<TValue>[];
};

export type QueryKeys = keyof BasicValueQuery<any>;

type ArrayValueQuery<TValue> = {
$elemMatch?: Query<TValue>;
} & BasicValueQuery<TValue>;
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as defaultOperations from "./operations";
import {
Query,
QueryKeys,
ShapeQuery,
Options,
createQueryTester,
Expand Down Expand Up @@ -31,6 +32,7 @@ const createDefaultQueryTester = <TItem, TSchema extends TItem = TItem>(

export {
Query,
QueryKeys,
ShapeQuery,
EqualsOperation,
createQueryTester,
Expand Down

0 comments on commit ca48bde

Please sign in to comment.