1 | import type { PropertyDescriptor as ESPropertyDescriptor, PropertyKey as ESPropertyKey } from "../index";
|
2 |
|
3 | /**
|
4 | * Adds a property to an object, or modifies attributes of an existing property.
|
5 | *
|
6 | * @param O Object on which to add or modify the property. This can be a native JavaScript object
|
7 | * (that is, a user-defined object or a built in object) or a DOM object.
|
8 | * @param P The property name.
|
9 | * @param desc Descriptor for the property. It can be for a data property or an accessor property.
|
10 | */
|
11 | declare function DefineOwnProperty(
|
12 | IsDataDescriptor: (Desc: ESPropertyDescriptor) => boolean,
|
13 | SameValue: (x: unknown, y: unknown) => boolean,
|
14 | FromPropertyDescriptor: (Desc: ESPropertyDescriptor) => PropertyDescriptor,
|
15 | O: object,
|
16 | P: ESPropertyKey,
|
17 | desc: ESPropertyDescriptor,
|
18 | ): boolean;
|
19 |
|
20 | export = DefineOwnProperty;
|