We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 296e841 commit bd2ae88Copy full SHA for bd2ae88
src/public/types/table-hooks.d.ts
@@ -19,7 +19,7 @@ interface DeletingHookContext<T,Key> {
19
}
20
21
interface TableHooks<T=any,TKey=IndexableType> extends DexieEventSet {
22
- (eventName: 'creating', subscriber: (this: CreatingHookContext<T,TKey>, primKey:TKey, obj:T, transaction:Transaction) => any): void;
+ (eventName: 'creating', subscriber: (this: CreatingHookContext<T,TKey>, primKey:TKey, obj:T, transaction:Transaction) => void | undefined | TKey): void;
23
(eventName: 'reading', subscriber: (obj:T) => T | any): void;
24
(eventName: 'updating', subscriber: (this: UpdatingHookContext<T,TKey>, modifications:Object, primKey:TKey, obj:T, transaction:Transaction) => any): void;
25
(eventName: 'deleting', subscriber: (this: DeletingHookContext<T,TKey>, primKey:TKey, obj:T, transaction:Transaction) => any): void;
0 commit comments