Skip to content

Commit

Permalink
fix: incorrect type local api using delete with where
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRibbens committed Apr 3, 2023
1 parent 95719a9 commit de5ceb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collections/operations/local/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { BulkOperationResult } from '../../config/types';

export type BaseOptions<T extends keyof GeneratedTypes['collections']> = {
collection: T
id: string | number
depth?: number
locale?: string
fallbackLocale?: string
Expand All @@ -21,6 +20,7 @@ export type BaseOptions<T extends keyof GeneratedTypes['collections']> = {
}

export type ByIDOptions<T extends keyof GeneratedTypes['collections']> = BaseOptions<T> & {
id: string | number
where?: never
}

Expand Down

0 comments on commit de5ceb2

Please sign in to comment.