Skip to content

Commit

Permalink
fix(typescript): Use stricter type for HookContext 'method' prop (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgenVatle committed Apr 5, 2020
1 parent 4da8a0f commit 24a41b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/feathers/index.d.ts
Expand Up @@ -77,7 +77,7 @@ declare namespace createApplication {
* A read only property with the name of the service method (one of find, get,
* create, update, patch, remove).
*/
readonly method: string;
readonly method: 'find' | 'get' | 'create' | 'update' | 'patch' | 'remove';
/**
* A writeable property that contains the service method parameters (including
* params.query).
Expand Down

0 comments on commit 24a41b7

Please sign in to comment.