🤖 Pick PR #53365 (Change ParamaterDecorator to allow ...) into release-5.0 (#53392)

Co-authored-by: Daniel Hritzkiv <daniel.hritzkiv@gmail.com>
This commit is contained in:
TypeScript Bot 2023-03-27 14:01:09 -07:00 committed by GitHub
parent e674ef3d58
commit b78f920ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void;