Skip to content

Commit

Permalink
data of entity.delete().go() should be nullable (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikeyan authored Oct 16, 2024
1 parent 57b1cf2 commit 04dca9e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2912,16 +2912,14 @@ export type DeleteRecordOperationGo<ResponseType, Keys> = <
options?: Options,
) => Options extends infer O
? "response" extends keyof O
? O["response"] extends "all_new"
? Promise<{ data: T }>
: O["response"] extends "all_old"
? Promise<{ data: T }>
? O["response"] extends "all_old"
? Promise<{ data: T | null }>
: O["response"] extends "default"
? Promise<{ data: Keys }>
? Promise<{ data: Keys | null }>
: O["response"] extends "none"
? Promise<{ data: null }>
: Promise<{ data: Partial<T> }>
: Promise<{ data: Keys }>
: Promise<{ data: Keys | null }>
: Promise<{ data: Keys | null }>
: never;

export type BatchWriteGo<ResponseType> = <O extends BulkOptions>(
Expand Down

0 comments on commit 04dca9e

Please sign in to comment.