NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
- 方法装饰器 ``` declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void; ``` - 类装饰器 ``` declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void; ``` - 参数装饰器 ``` declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; ``` - 属性装饰器 ``` declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; ``` --- - TypedPropertyDesciptor ``` interface TypedPropertyDescriptor<T> { enumerable?: boolean; configurable?: boolean; writable?: boolean; value?: T; get?: () => T; set?: (value: T) => void; } ```