Function definePrototypeLazyConstant
- definePrototypeLazyConstant<T, P, V>(Class, property, callback, options?): 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