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 May 6, 2019
1 parent ef28cee commit 598e393
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 598e393

Please sign in to comment.