powertools-lambda-typescript icon indicating copy to clipboard operation
powertools-lambda-typescript copied to clipboard

(tracer): define more specific types for decorators

Open dreamorosi opened this issue 2 years ago • 0 comments

Description of the feature request

As discussed internally, we need to define more specific types for the method decorator that currently uses the any type:

// TODO: Revisit type below & make it more specific
// eslint-disable-next-line  @typescript-eslint/no-explicit-any
type MethodDecorator = (target: any, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => any;

Related issues, RFCs

#107

dreamorosi avatar Dec 13 '21 17:12 dreamorosi