@thi.ng/api
Version:
Common, generic types, interfaces & mixins
10 lines • 412 B
TypeScript
/**
* Method property decorator factory. Augments original method with
* deprecation message (via console), shown when method is invoked.
* Accepts optional message arg. Throws error if assigned property
* is not a function.
*
* @param msg - deprecation message
*/
export declare const deprecated: (msg?: string, log?: (...data: any[]) => void) => MethodDecorator;
//# sourceMappingURL=deprecated.d.ts.map