Skip to content

Commit 04dca9e

Browse files
authored
data of entity.delete().go() should be nullable (#431)
1 parent 57b1cf2 commit 04dca9e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

index.d.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2912,16 +2912,14 @@ export type DeleteRecordOperationGo<ResponseType, Keys> = <
29122912
options?: Options,
29132913
) => Options extends infer O
29142914
? "response" extends keyof O
2915-
? O["response"] extends "all_new"
2916-
? Promise<{ data: T }>
2917-
: O["response"] extends "all_old"
2918-
? Promise<{ data: T }>
2915+
? O["response"] extends "all_old"
2916+
? Promise<{ data: T | null }>
29192917
: O["response"] extends "default"
2920-
? Promise<{ data: Keys }>
2918+
? Promise<{ data: Keys | null }>
29212919
: O["response"] extends "none"
29222920
? Promise<{ data: null }>
2923-
: Promise<{ data: Partial<T> }>
2924-
: Promise<{ data: Keys }>
2921+
: Promise<{ data: Keys | null }>
2922+
: Promise<{ data: Keys | null }>
29252923
: never;
29262924

29272925
export type BatchWriteGo<ResponseType> = <O extends BulkOptions>(

0 commit comments

Comments
 (0)