Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Commit

Permalink
[typings] add service and id to hook context object (#169)
Browse files Browse the repository at this point in the history
* add service and id to hook context object

* Update index.d.ts

* Update index.d.ts
  • Loading branch information
j2L4e authored and daffl committed Sep 25, 2017
1 parent adf84ff commit 3762607
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ declare namespace hooks {
}

interface HookProps<T> {
app?: feathers.Application;
data?: T;
error?: any;
id?: string | number;
method?: string;
type: 'before' | 'after' | 'error';
params?: any;
data?: T;
path?: string;
result?: T;
app?: feathers.Application;
service: feathers.Service<T>;
type: 'before' | 'after' | 'error';
}

interface HookMap {
Expand Down

0 comments on commit 3762607

Please sign in to comment.