UNPKG

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