Function deprecate

  • 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[]

        Returns ReturnType<ResultFn>