From 5ab8522e7fc07458ed60b4cb6cf41e2d8e468a8d Mon Sep 17 00:00:00 2001 From: clarenceh Date: Mon, 26 Jun 2017 17:27:04 +0800 Subject: [PATCH] Updates to Table interface definition --- types/massive/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/massive/index.d.ts b/types/massive/index.d.ts index 67be093bb0..ccf6469d91 100644 --- a/types/massive/index.d.ts +++ b/types/massive/index.d.ts @@ -50,9 +50,9 @@ declare namespace massive { count(criteria: object): Promise; where(query: string, params: any[] | object): Promise; search(criteria: SearchCriteria, queryOptions?: QueryOptions): Promise; - save(data: object): Promise; - insert(data: object): Promise; - update(dataOrCriteria: object, changesMap?: object): Promise; + save(data: object | object[]): Promise | Promise; + insert(data: object | object[]): Promise | Promise; + update(dataOrCriteria: object | object[], changesMap?: object): Promise | Promise; destroy(criteria: object): Promise; }