Skip to content

Commit

Permalink
fix(context): use any for TypedPropertyDescriptor to pass strictFunct…
Browse files Browse the repository at this point in the history
…ionTypes

See #2704
  • Loading branch information
raymondfeng committed Apr 17, 2019
1 parent f0e6192 commit 15f0cad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/context/src/interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ export function intercept(...interceptorOrKeys: InterceptorOrKey[]) {
return function interceptDecoratorForClassOrMethod(
target: ClassOrPrototype,
method?: string,
methodDescriptor?: TypedPropertyDescriptor<unknown>,
// Use `any` to for `TypedPropertyDescriptor`
// See https://github.com/strongloop/loopback-next/pull/2704
// tslint:disable-next-line:no-any
methodDescriptor?: TypedPropertyDescriptor<any>,
) {
if (method && methodDescriptor) {
// Method
Expand Down

0 comments on commit 15f0cad

Please sign in to comment.