lib.es2017.object.d.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*! *****************************************************************************
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  4. this file except in compliance with the License. You may obtain a copy of the
  5. License at http://www.apache.org/licenses/LICENSE-2.0
  6. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  7. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  8. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  9. MERCHANTABLITY OR NON-INFRINGEMENT.
  10. See the Apache Version 2.0 License for specific language governing permissions
  11. and limitations under the License.
  12. ***************************************************************************** */
  13. /// <reference no-default-lib="true"/>
  14. interface ObjectConstructor {
  15. /**
  16. * Returns an array of values of the enumerable properties of an object
  17. * @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.
  18. */
  19. values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
  20. /**
  21. * Returns an array of values of the enumerable properties of an object
  22. * @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(o: {}): any[];
  25. /**
  26. * Returns an array of key/values of the enumerable properties of an object
  27. * @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.
  28. */
  29. entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
  30. /**
  31. * Returns an array of key/values of the enumerable properties of an object
  32. * @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(o: {}): [string, any][];
  35. /**
  36. * Returns an object containing all own property descriptors of an object
  37. * @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.
  38. */
  39. getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
  40. }