Module src/core/functools/deprecation
Functions
deprecate
- deprecate<T>(opts: WarnOptions, fn: T): T extends (...args: infer A) => infer R ? WarnedFn<A, R> : T
- deprecate(opts: InlineWarnOptions): void
- deprecate<T>(fn: T): T extends (...args: infer A) => infer R ? WarnedFn<A, R> : T
Type parameters
Parameters
Returns T extends (...args: infer A) => infer R ? WarnedFn<A, R> : T
Parameters
Returns void
Type parameters
Parameters
Returns T extends (...args: infer A) => infer R ? WarnedFn<A, R> : T
deprecated
- deprecated(target: object, key: string | symbol, descriptor: PropertyDescriptor): void
- deprecated(opts?: WarnOptions): Function
Parameters
target: object
key: string | symbol
descriptor: PropertyDescriptor
Returns void
Parameters
Returns Function
core/functools/deprecation
This module provides a bunch of functions and decorators to mark deprecated functions with the special flag.