Skip to content

Commit

Permalink
fix: Updated HooksObject typings (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
evankennedy authored and daffl committed Apr 22, 2019
1 parent 53575c5 commit b28058c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/feathers/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ export interface HookMap {
}

export interface HooksObject {
before: Partial<HookMap>;
after: Partial<HookMap>;
error: Partial<HookMap>;
before: Partial<HookMap> | Hook | Hook[];
after: Partial<HookMap> | Hook | Hook[];
error: Partial<HookMap> | Hook | Hook[];
finally: Partial<HookMap> | Hook | Hook[];
}

// todo: figure out what to do: These methods don't actually need to be implemented, so they can be undefined at runtime. Yet making them optional gets cumbersome in strict mode.
Expand Down

0 comments on commit b28058c

Please sign in to comment.