Function definePrototypeLazyProperty
- definePrototypeLazyProperty<
T extends { prototype: unknown },
P extends string,
V,
>(
Class: T,
property: P,
callback: LazyCallback<V>,
options?: DefinePropertyOptions,
): any | T & { [K in P]: V } Type Parameters
- T extends { prototype: unknown }
- P extends string
- V
Returns any | T & { [K in P]: V }
Class
Create a getter that transforms then to a property