Interface ClassSetterDecoratorContext<This, Value>
interface ClassSetterDecoratorContext<This = unknown, Value = unknown> {
access: {
has(object: This): boolean;
set(object: This, value: Value): void;
};
kind: "setter";
metadata: DecoratorMetadataObject;
name: string
| symbol;
private: boolean;
static: boolean;
addInitializer(initializer: (this: This) => void): void;
}
 access: {
has(object: This): boolean;
set(object: This, value: Value): void;
};
kind: "setter";
metadata: DecoratorMetadataObject;
name: string
| symbol;
private: boolean;
static: boolean;
addInitializer(initializer: (this: This) => void): void;
}
Type Parameters
 Properties
Readonlyaccess
An object that can be used to access the current value of the class element at runtime.
Type declaration
Readonlykind
kind: "setter"
The kind of class element that was decorated.
Readonlymetadata
Readonlyname
name: string | symbol
The name of the decorated class element.
Readonlyprivate
private: boolean
A value indicating whether the class element has a private name.
Readonlystatic
static: boolean
A value indicating whether the class element is a static (true) or instance (false) element.
 Methods
addInitializer 
- addInitializer(initializer: (this: This) => void): void
- Adds a callback to be invoked either after static methods are defined but before static initializers are run (when decorating a - staticelement), or before instance initializers are run (when decorating a non-- staticelement).- Parameters- initializer: (this: This) => void
 - Returns void
Context provided to a class setter decorator.