Function decoratePlainObject
- decoratePlainObject<T>(obj: T, makeDecorator: ((target: T, key: Extract<keyof T, string>) => ((...args: any[]) => unknown))): unknown
-
Parameters
-
obj: T
-
makeDecorator: ((target: T, key: Extract<keyof T, string>) => ((...args: any[]) => unknown))
-
- (target: T, key: Extract<keyof T, string>): ((...args: any[]) => unknown)
-
Parameters
-
target: T
-
key: Extract<keyof T, string>
Returns ((...args: any[]) => unknown)
-
- (...args: any[]): unknown
-
Returns unknown
Returns unknown