CoolFace
Apppublic

Pinsave/counterstrike

sourceHugging Faceupdated 3mo agoView on Hugging Face
1likes
lib.es2017.object.d.ts50 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,10MERCHANTABLITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17/// <reference no-default-lib="true"/>18 19interface ObjectConstructor {20    /**21     * Returns an array of values of the enumerable own properties of an object22     * @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.23     */24    values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];25 26    /**27     * Returns an array of values of the enumerable own properties of an object28     * @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.29     */30    values(o: {}): any[];31 32    /**33     * Returns an array of key/values of the enumerable own properties of an object34     * @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.35     */36    entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];37 38    /**39     * Returns an array of key/values of the enumerable own properties of an object40     * @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.41     */42    entries(o: {}): [string, any][];43 44    /**45     * Returns an object containing all own property descriptors of an object46     * @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.47     */48    getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; };49}50