Skip to content

Commit 2c400b7

Browse files
authored
Update decorators.legacy.d.ts
`propertyKey` argument can be undefined for parameter decorators
1 parent d458e30 commit 2c400b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)