We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * @param { TFunction } target 被装饰的类 */ type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
/** * @param { TFunction } target 被装饰的类 * @param { string | symbol } propertyKey 属性的key */ type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
/** * @param { TFunction } target 被装饰的方法 * @param { string | symbol } propertyKey 方法的key * @param { TypedPropertyDescriptor<T> } descriptor 属性描述符 */ type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
/** * @param { TFunction } target 被装饰的方法 * @param { string | symbol } propertyKey 方法的key - 若被装饰的参数位于constructor,此处key将为`undefined` * @param { number } parameterIndex 参数所在索引 */ type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
类装饰器
属性装饰器
方法装饰器
参数装饰器
The text was updated successfully, but these errors were encountered: