Skip to content

Commit bd2ae88

Browse files
hekystyledfahlander
authored andcommitted
feat(d.ts): creating hook subscriber return value
1 parent 296e841 commit bd2ae88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/public/types/table-hooks.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface DeletingHookContext<T,Key> {
1919
}
2020

2121
interface TableHooks<T=any,TKey=IndexableType> extends DexieEventSet {
22-
(eventName: 'creating', subscriber: (this: CreatingHookContext<T,TKey>, primKey:TKey, obj:T, transaction:Transaction) => any): void;
22+
(eventName: 'creating', subscriber: (this: CreatingHookContext<T,TKey>, primKey:TKey, obj:T, transaction:Transaction) => void | undefined | TKey): void;
2323
(eventName: 'reading', subscriber: (obj:T) => T | any): void;
2424
(eventName: 'updating', subscriber: (this: UpdatingHookContext<T,TKey>, modifications:Object, primKey:TKey, obj:T, transaction:Transaction) => any): void;
2525
(eventName: 'deleting', subscriber: (this: DeletingHookContext<T,TKey>, primKey:TKey, obj:T, transaction:Transaction) => any): void;

0 commit comments

Comments
 (0)