Function definePrototypeProperty
- definePrototypeProperty<T extends { prototype: unknown }, P extends string, V>(
Class: T,
property: P,
value: V,
options?: DefinePropertyOptions,
): any | T & { [K in P]: V } Type Parameters
- T extends { prototype: unknown }
- P extends string
- V
Parameters
- Class: T
- property: P
- value: V
Optional
options: DefinePropertyOptionsOptional
configurable?: boolean
Optional
enumerable?: boolean
Optional
writable?: boolean
Returns any | T & { [K in P]: V }
Class
name of the property