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