💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
- 方法装饰器 ``` 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; } ```