From 9df7f994df3a97ee1054438b3c4b2a7395d34d3d Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 17 Apr 2019 10:04:32 -0700 Subject: [PATCH] fix(context): use any for TypedPropertyDescriptor to pass strictFunctionTypes See https://github.com/strongloop/loopback-next/pull/2704 --- packages/context/src/interceptor.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/context/src/interceptor.ts b/packages/context/src/interceptor.ts index 52afa86601d7..604231a77b33 100644 --- a/packages/context/src/interceptor.ts +++ b/packages/context/src/interceptor.ts @@ -214,7 +214,10 @@ export function intercept(...interceptorOrKeys: InterceptorOrKey[]) { return function interceptDecoratorForClassOrMethod( target: ClassOrPrototype, method?: string, - methodDescriptor?: TypedPropertyDescriptor, + // Use `any` to for `TypedPropertyDescriptor` + // See https://github.com/strongloop/loopback-next/pull/2704 + // tslint:disable-next-line:no-any + methodDescriptor?: TypedPropertyDescriptor, ) { if (method && methodDescriptor) { // Method