Function getOwnPropertyDescriptor
- get
Own <T, P>(target, propertyKey): TypedPropertyDescriptor<P extends keyof TProperty Descriptor
? T[P]
: any> | undefined Type Parameters
- T extends object
- P extends PropertyKey
Returns TypedPropertyDescriptor<P extends keyof T
? T[P]
: any> | undefined
Gets the own property descriptor of the specified object. An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.