Interface ClassFieldDecoratorContext<This, Value>
interface ClassFieldDecoratorContext<This = unknown, Value = unknown> {
access: {
get(object: This): Value;
has(object: This): boolean;
set(object: This, value: Value): void;
};
kind: "field";
metadata: DecoratorMetadataObject;
name: string
| symbol;
private: boolean;
static: boolean;
addInitializer(initializer: (this: This) => void): void;
}
 access: {
get(object: This): Value;
has(object: This): boolean;
set(object: This, value: Value): void;
};
kind: "field";
metadata: DecoratorMetadataObject;
name: string
| symbol;
private: boolean;
static: boolean;
addInitializer(initializer: (this: This) => void): void;
}
Type Parameters
 Properties
Readonlyaccess
access: {
get(object: This): Value;
has(object: This): boolean;
set(object: This, value: Value): void;
}
get(object: This): Value;
has(object: This): boolean;
set(object: This, value: Value): void;
}
An object that can be used to access the current value of the class element at runtime.
Type declaration
- get:function
- has:function
- set:function
Readonlykind
kind: "field"
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.
Context provided to a class field decorator.