- deprecate<ResultFn>(original, alternative, fn): ((this, ...args) => ReturnType<ResultFn>)
Type Parameters
ResultFn extends ((this, ...newArgs) => ReturnType<ResultFn>)
Parameters
original: string
alternative: string
fn: ResultFn
Returns ((this, ...args) => ReturnType<ResultFn>)
- (this, ...args): ReturnType<ResultFn>
Parameters
this: unknown
Rest
...args: unknown[]