Interface ClassGetterDecoratorContext<This, Value>
interface ClassGetterDecoratorContext<This, Value> {
access: {
get(object: This): Value;
has(object: This): boolean;
};
kind: "getter";
metadata: DecoratorMetadataObject;
name: string | symbol;
private: boolean;
static: boolean;
addInitializer(initializer: ((this: This) => void)): void;
}
access: {
get(object: This): Value;
has(object: This): boolean;
};
kind: "getter";
metadata: DecoratorMetadataObject;
name: string | symbol;
private: boolean;
static: boolean;
addInitializer(initializer: ((this: This) => void)): void;
}
Type Parameters
Properties
Readonly
access
An object that can be used to access the current value of the class element at runtime.
Type declaration
Readonly
kind
kind: "getter"
The kind of class element that was decorated.
Readonly
metadata
Readonly
name
name: string | symbol
The name of the decorated class element.
Readonly
private
private: boolean
A value indicating whether the class element has a private name.
Readonly
static
static: boolean
A value indicating whether the class element is a static (true
) or instance (false
) element.
Context provided to a class getter decorator.