index.d.ts 875 B

1234567891011121314
  1. export declare type DeprecatedDecorator = ClassDecorator & PropertyDecorator;
  2. export interface DeprecatedOptions {
  3. alternative?: string;
  4. version?: string;
  5. url?: string;
  6. }
  7. export declare function deprecated(options?: DeprecatedOptions): DeprecatedDecorator;
  8. export declare function deprecated(alternative?: string, version?: string, url?: string): DeprecatedDecorator;
  9. export declare function deprecated<T extends Function>(fn: T): T;
  10. export declare function deprecated<T extends Function>(options: DeprecatedOptions, fn: T): T;
  11. export declare function deprecated<T extends Function>(alternative: string, fn: T): T;
  12. export declare function deprecated<T extends Function>(alternative: string, version: string, fn: T): T;
  13. export declare function deprecated<T extends Function>(alternative: string, version: string, url: string, fn: T): T;
  14. export default deprecated;