Function defineProperties
- defineProperties<T, P extends Record<string, any>>(
target: T,
properties?: P,
options?: DefinePropertyOptions,
): T | any | P & T Type Parameters
- T
- P extends Record<string, any>
Parameters
- target: T
Optional
properties: POptional
options: DefinePropertyOptionsOptional
configurable?: boolean
Optional
enumerable?: boolean
Optional
writable?: boolean
Returns T | any | P & T
target
Shortcut for Object.defineProperties