Skip to content

Commit

Permalink
feat(d.ts): creating hook subscriber return value
Browse files Browse the repository at this point in the history
  • Loading branch information
hekystyle authored and dfahlander committed Oct 2, 2022
1 parent 296e841 commit bd2ae88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/types/table-hooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface DeletingHookContext<T,Key> {
}

interface TableHooks<T=any,TKey=IndexableType> extends DexieEventSet {
(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;
(eventName: 'reading', subscriber: (obj:T) => T | any): void;
(eventName: 'updating', subscriber: (this: UpdatingHookContext<T,TKey>, modifications:Object, primKey:TKey, obj:T, transaction:Transaction) => any): void;
(eventName: 'deleting', subscriber: (this: DeletingHookContext<T,TKey>, primKey:TKey, obj:T, transaction:Transaction) => any): void;
Expand Down

0 comments on commit bd2ae88

Please sign in to comment.