Skip to content

Commit

Permalink
chore(hooks): add event property to HookContext (#2004)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwgjoseph authored and daffl committed Jul 11, 2020
1 parent ef55af0 commit a77b2d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/feathers/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ declare namespace createApplication {
* A read only property with the hook type (one of before, after or error).
*/
readonly type: 'before' | 'after' | 'error';
/**
* A writeable, optional property that allows service events to be skipped by
* setting it to `null`
*/
event?: null;
}

interface HookMap<T = any> {
Expand Down

0 comments on commit a77b2d2

Please sign in to comment.