前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
export interface IDecorator { (clazz: object, name: string, props: PropertyDescriptor): any; } export interface IDecoratorBuilder<T> { (input: T): IDecorator; } export interface IDynamicDecorator<T> extends IDecorator, IDecoratorBuilder<T> { (clazz: object | T, name: string, props: PropertyDescriptor): any | IDecorator; } export declare function dynamicDecorator<T>(defaultArg: T, builder: IDecoratorBuilder<T>): IDynamicDecorator<T>;