CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
lib.es2017.object.d.ts48 linesDownload Raw Back to lib
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABILITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17interface ObjectConstructor {18    /**19     * Returns an array of values of the enumerable own properties of an object20     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.21     */22    values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];23 24    /**25     * Returns an array of values of the enumerable own properties of an object26     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.27     */28    values(o: {}): any[];29 30    /**31     * Returns an array of key/values of the enumerable own properties of an object32     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.33     */34    entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];35 36    /**37     * Returns an array of key/values of the enumerable own properties of an object38     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.39     */40    entries(o: {}): [string, any][];41 42    /**43     * Returns an object containing all own property descriptors of an object44     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.45     */46    getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; };47}48