Skip to content

Commit 192d5a4

Browse files
committed
fix(ts): fix return types for batch ops
1 parent 9b44be4 commit 192d5a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,15 @@ export class Object extends BaseObject {
304304
static fetchAll<T extends Object>(
305305
list: T[],
306306
options?: AuthOptions
307-
): Promise<T>;
307+
): Promise<Array<T | Error>>;
308308
static destroyAll(
309309
list: Object[],
310310
options?: Object.DestroyAllOptions
311-
): Promise<void>;
311+
): Promise<Array<void | Error>>;
312312
static saveAll<T extends Object>(
313313
list: T[],
314314
options?: Object.SaveAllOptions
315-
): Promise<T>;
315+
): Promise<Array<T | Error>>;
316316
static register(klass: new (...args: any[]) => Object, name?: string): void;
317317

318318
initialize(): void;

0 commit comments

Comments
 (0)