UNPKG

catch-decorator-ts

Version:
17 lines (16 loc) 403 B
export type Handler = (err: any, context: any, ...args: any) => any; export declare const Catch: ( ErrorClassConstructor: Function, handler: Handler, ) => ( target: any, key: string, descriptor: PropertyDescriptor, ) => PropertyDescriptor; export declare const DefaultCatch: ( handler: Handler, ) => ( target: any, key: string, descriptor: PropertyDescriptor, ) => PropertyDescriptor;