From ff25e1ba184a0091c49d6a54ee4753f6b5a9bd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Vatle?= Date: Fri, 3 Apr 2020 07:53:31 +0300 Subject: [PATCH] Use stricter type for HookContext 'method' prop --- packages/feathers/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/feathers/index.d.ts b/packages/feathers/index.d.ts index d12407dd02..889372dd7d 100644 --- a/packages/feathers/index.d.ts +++ b/packages/feathers/index.d.ts @@ -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).