- timed(delay?, errorTimeoutConstructor?): ((target, key, descriptor) => TypedPropertyDescriptor<((...params) => any)>)
-
Parameters
-
delay: number = Infinity
-
errorTimeoutConstructor: (new () => Error) = errors.ErrorContextsTimedTimeOut
-
- new (): Error
-
Returns Error
Returns ((target, key, descriptor) => TypedPropertyDescriptor<((...params) => any)>)
-
- (target, key, descriptor): TypedPropertyDescriptor<((...params) => any)>
-
Parameters
-
target: any
-
key: string | symbol
-
descriptor: TypedPropertyDescriptor<((...params) => any)>
Returns TypedPropertyDescriptor<((...params) => any)>
Timed method decorator