diff --git a/src/public/types/table.d.ts b/src/public/types/table.d.ts index 27d346f5a..334f1837c 100644 --- a/src/public/types/table.d.ts +++ b/src/public/types/table.d.ts @@ -45,10 +45,10 @@ export interface Table { add(item: TInsertType, key?: TKey): PromiseExtended; update( key: TKey | T, - changes: UpdateSpec): PromiseExtended; + changes: ((obj: T, ctx:{value: any, primKey: IndexableType}) => void | boolean)): PromiseExtended; update( key: TKey | T, - changes: ((obj: T, ctx:{value: any, primKey: IndexableType}) => void | boolean)): PromiseExtended; + changes: UpdateSpec): PromiseExtended; put(item: TInsertType, key?: TKey): PromiseExtended; delete(key: TKey): PromiseExtended; clear(): PromiseExtended;