Skip to content

Commit

Permalink
fix: make "EntityType" type compatible with objects (#251)
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Zakharchenko <[email protected]>
Co-authored-by: Gagan Deep Singh <[email protected]>
  • Loading branch information
3 people committed Jan 24, 2023
1 parent ed01a1e commit 06e233e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/queryTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ export interface BulkQueryBaseOptions<EntityType extends AnyObject> {
orderBy?: OrderBy<EntityType> | OrderBy<EntityType>[]
}

interface BulkQueryOffsetOptions<EntityType>
interface BulkQueryOffsetOptions<EntityType extends AnyObject>
extends BulkQueryBaseOptions<EntityType> {
skip?: number
cursor?: never
}

interface BulkQueryCursorOptions<EntityType>
interface BulkQueryCursorOptions<EntityType extends AnyObject>
extends BulkQueryBaseOptions<EntityType> {
skip?: never
cursor: PrimaryKeyType | null
Expand Down

0 comments on commit 06e233e

Please sign in to comment.