mirror of https://github.com/espruino/BangleApps
Regenerate main.d.ts - fromEntries & getOwnPropertyDescriptors
parent
769c4c2793
commit
e44e4c0274
|
@ -8688,6 +8688,15 @@ interface ObjectConstructor {
|
||||||
*/
|
*/
|
||||||
entries(object: any): Array<[string, any]>;
|
entries(object: any): Array<[string, any]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Transforms an array of key-value pairs into an object
|
||||||
|
*
|
||||||
|
* @param {any} entries - An array of `[key,value]` pairs to be used to create an object
|
||||||
|
* @returns {any} An object containing all the specified pairs
|
||||||
|
* @url http://www.espruino.com/Reference#l_Object_fromEntries
|
||||||
|
*/
|
||||||
|
fromEntries(entries: any): any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new object with the specified prototype object and properties.
|
* Creates a new object with the specified prototype object and properties.
|
||||||
* properties are currently unsupported.
|
* properties are currently unsupported.
|
||||||
|
@ -8709,6 +8718,15 @@ interface ObjectConstructor {
|
||||||
*/
|
*/
|
||||||
getOwnPropertyDescriptor(obj: any, name: any): any;
|
getOwnPropertyDescriptor(obj: any, name: any): any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get information on all properties in the object (from `Object.getOwnPropertyDescriptor`), or just `{}` if no properties
|
||||||
|
*
|
||||||
|
* @param {any} obj - The object
|
||||||
|
* @returns {any} An object containing all the property descriptors of an object
|
||||||
|
* @url http://www.espruino.com/Reference#l_Object_getOwnPropertyDescriptors
|
||||||
|
*/
|
||||||
|
getOwnPropertyDescriptors(obj: any): any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new property to the Object. 'Desc' is an object with the following fields:
|
* Add a new property to the Object. 'Desc' is an object with the following fields:
|
||||||
* * `configurable` (bool = false) - can this property be changed/deleted (not
|
* * `configurable` (bool = false) - can this property be changed/deleted (not
|
||||||
|
|
Loading…
Reference in New Issue