Skip to content

Commit 41474f9

Browse files
authored
Change ParamaterDecorator to allow an undefined propertyKey (microsoft#53365)
1 parent 86f8114 commit 41474f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/decorators.legacy.d.ts

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

0 commit comments

Comments
 (0)