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