Geen omschrijving

index.d.ts 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. // Generated by typings
  2. // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/9807d9b701f58be068cb07833d2b24235351d052/es6-shim/es6-shim.d.ts
  3. declare type PropertyKey = string | number | symbol;
  4. interface IteratorResult<T> {
  5. done: boolean;
  6. value?: T;
  7. }
  8. interface IterableShim<T> {
  9. /**
  10. * Shim for an ES6 iterable. Not intended for direct use by user code.
  11. */
  12. "_es6-shim iterator_"(): Iterator<T>;
  13. }
  14. interface Iterator<T> {
  15. next(value?: any): IteratorResult<T>;
  16. return?(value?: any): IteratorResult<T>;
  17. throw?(e?: any): IteratorResult<T>;
  18. }
  19. interface IterableIteratorShim<T> extends IterableShim<T>, Iterator<T> {
  20. /**
  21. * Shim for an ES6 iterable iterator. Not intended for direct use by user code.
  22. */
  23. "_es6-shim iterator_"(): IterableIteratorShim<T>;
  24. }
  25. interface StringConstructor {
  26. /**
  27. * Return the String value whose elements are, in order, the elements in the List elements.
  28. * If length is 0, the empty string is returned.
  29. */
  30. fromCodePoint(...codePoints: number[]): string;
  31. /**
  32. * String.raw is intended for use as a tag function of a Tagged Template String. When called
  33. * as such the first argument will be a well formed template call site object and the rest
  34. * parameter will contain the substitution values.
  35. * @param template A well-formed template string call site representation.
  36. * @param substitutions A set of substitution values.
  37. */
  38. raw(template: TemplateStringsArray, ...substitutions: any[]): string;
  39. }
  40. interface String {
  41. /**
  42. * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
  43. * value of the UTF-16 encoded code point starting at the string element at position pos in
  44. * the String resulting from converting this object to a String.
  45. * If there is no element at that position, the result is undefined.
  46. * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
  47. */
  48. codePointAt(pos: number): number;
  49. /**
  50. * Returns true if searchString appears as a substring of the result of converting this
  51. * object to a String, at one or more positions that are
  52. * greater than or equal to position; otherwise, returns false.
  53. * @param searchString search string
  54. * @param position If position is undefined, 0 is assumed, so as to search all of the String.
  55. */
  56. includes(searchString: string, position?: number): boolean;
  57. /**
  58. * Returns true if the sequence of elements of searchString converted to a String is the
  59. * same as the corresponding elements of this object (converted to a String) starting at
  60. * endPosition – length(this). Otherwise returns false.
  61. */
  62. endsWith(searchString: string, endPosition?: number): boolean;
  63. /**
  64. * Returns a String value that is made from count copies appended together. If count is 0,
  65. * T is the empty String is returned.
  66. * @param count number of copies to append
  67. */
  68. repeat(count: number): string;
  69. /**
  70. * Returns true if the sequence of elements of searchString converted to a String is the
  71. * same as the corresponding elements of this object (converted to a String) starting at
  72. * position. Otherwise returns false.
  73. */
  74. startsWith(searchString: string, position?: number): boolean;
  75. /**
  76. * Returns an <a> HTML anchor element and sets the name attribute to the text value
  77. * @param name
  78. */
  79. anchor(name: string): string;
  80. /** Returns a <big> HTML element */
  81. big(): string;
  82. /** Returns a <blink> HTML element */
  83. blink(): string;
  84. /** Returns a <b> HTML element */
  85. bold(): string;
  86. /** Returns a <tt> HTML element */
  87. fixed(): string
  88. /** Returns a <font> HTML element and sets the color attribute value */
  89. fontcolor(color: string): string
  90. /** Returns a <font> HTML element and sets the size attribute value */
  91. fontsize(size: number): string;
  92. /** Returns a <font> HTML element and sets the size attribute value */
  93. fontsize(size: string): string;
  94. /** Returns an <i> HTML element */
  95. italics(): string;
  96. /** Returns an <a> HTML element and sets the href attribute value */
  97. link(url: string): string;
  98. /** Returns a <small> HTML element */
  99. small(): string;
  100. /** Returns a <strike> HTML element */
  101. strike(): string;
  102. /** Returns a <sub> HTML element */
  103. sub(): string;
  104. /** Returns a <sup> HTML element */
  105. sup(): string;
  106. /**
  107. * Shim for an ES6 iterable. Not intended for direct use by user code.
  108. */
  109. "_es6-shim iterator_"(): IterableIteratorShim<string>;
  110. }
  111. interface ArrayConstructor {
  112. /**
  113. * Creates an array from an array-like object.
  114. * @param arrayLike An array-like object to convert to an array.
  115. * @param mapfn A mapping function to call on every element of the array.
  116. * @param thisArg Value of 'this' used to invoke the mapfn.
  117. */
  118. from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
  119. /**
  120. * Creates an array from an iterable object.
  121. * @param iterable An iterable object to convert to an array.
  122. * @param mapfn A mapping function to call on every element of the array.
  123. * @param thisArg Value of 'this' used to invoke the mapfn.
  124. */
  125. from<T, U>(iterable: IterableShim<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
  126. /**
  127. * Creates an array from an array-like object.
  128. * @param arrayLike An array-like object to convert to an array.
  129. */
  130. from<T>(arrayLike: ArrayLike<T>): Array<T>;
  131. /**
  132. * Creates an array from an iterable object.
  133. * @param iterable An iterable object to convert to an array.
  134. */
  135. from<T>(iterable: IterableShim<T>): Array<T>;
  136. /**
  137. * Returns a new array from a set of elements.
  138. * @param items A set of elements to include in the new array object.
  139. */
  140. of<T>(...items: T[]): Array<T>;
  141. }
  142. interface Array<T> {
  143. /**
  144. * Returns the value of the first element in the array where predicate is true, and undefined
  145. * otherwise.
  146. * @param predicate find calls predicate once for each element of the array, in ascending
  147. * order, until it finds one where predicate returns true. If such an element is found, find
  148. * immediately returns that element value. Otherwise, find returns undefined.
  149. * @param thisArg If provided, it will be used as the this value for each invocation of
  150. * predicate. If it is not provided, undefined is used instead.
  151. */
  152. find(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T;
  153. /**
  154. * Returns the index of the first element in the array where predicate is true, and undefined
  155. * otherwise.
  156. * @param predicate find calls predicate once for each element of the array, in ascending
  157. * order, until it finds one where predicate returns true. If such an element is found, find
  158. * immediately returns that element value. Otherwise, find returns undefined.
  159. * @param thisArg If provided, it will be used as the this value for each invocation of
  160. * predicate. If it is not provided, undefined is used instead.
  161. */
  162. findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
  163. /**
  164. * Returns the this object after filling the section identified by start and end with value
  165. * @param value value to fill array section with
  166. * @param start index to start filling the array at. If start is negative, it is treated as
  167. * length+start where length is the length of the array.
  168. * @param end index to stop filling the array at. If end is negative, it is treated as
  169. * length+end.
  170. */
  171. fill(value: T, start?: number, end?: number): T[];
  172. /**
  173. * Returns the this object after copying a section of the array identified by start and end
  174. * to the same array starting at position target
  175. * @param target If target is negative, it is treated as length+target where length is the
  176. * length of the array.
  177. * @param start If start is negative, it is treated as length+start. If end is negative, it
  178. * is treated as length+end.
  179. * @param end If not specified, length of the this object is used as its default value.
  180. */
  181. copyWithin(target: number, start: number, end?: number): T[];
  182. /**
  183. * Returns an array of key, value pairs for every entry in the array
  184. */
  185. entries(): IterableIteratorShim<[number, T]>;
  186. /**
  187. * Returns an list of keys in the array
  188. */
  189. keys(): IterableIteratorShim<number>;
  190. /**
  191. * Returns an list of values in the array
  192. */
  193. values(): IterableIteratorShim<T>;
  194. /**
  195. * Shim for an ES6 iterable. Not intended for direct use by user code.
  196. */
  197. "_es6-shim iterator_"(): IterableIteratorShim<T>;
  198. }
  199. interface NumberConstructor {
  200. /**
  201. * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
  202. * that is representable as a Number value, which is approximately:
  203. * 2.2204460492503130808472633361816 x 10‍−‍16.
  204. */
  205. EPSILON: number;
  206. /**
  207. * Returns true if passed value is finite.
  208. * Unlike the global isFininte, Number.isFinite doesn't forcibly convert the parameter to a
  209. * number. Only finite values of the type number, result in true.
  210. * @param number A numeric value.
  211. */
  212. isFinite(number: number): boolean;
  213. /**
  214. * Returns true if the value passed is an integer, false otherwise.
  215. * @param number A numeric value.
  216. */
  217. isInteger(number: number): boolean;
  218. /**
  219. * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
  220. * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
  221. * to a number. Only values of the type number, that are also NaN, result in true.
  222. * @param number A numeric value.
  223. */
  224. isNaN(number: number): boolean;
  225. /**
  226. * Returns true if the value passed is a safe integer.
  227. * @param number A numeric value.
  228. */
  229. isSafeInteger(number: number): boolean;
  230. /**
  231. * The value of the largest integer n such that n and n + 1 are both exactly representable as
  232. * a Number value.
  233. * The value of Number.MIN_SAFE_INTEGER is 9007199254740991 2^53 − 1.
  234. */
  235. MAX_SAFE_INTEGER: number;
  236. /**
  237. * The value of the smallest integer n such that n and n − 1 are both exactly representable as
  238. * a Number value.
  239. * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
  240. */
  241. MIN_SAFE_INTEGER: number;
  242. /**
  243. * Converts a string to a floating-point number.
  244. * @param string A string that contains a floating-point number.
  245. */
  246. parseFloat(string: string): number;
  247. /**
  248. * Converts A string to an integer.
  249. * @param s A string to convert into a number.
  250. * @param radix A value between 2 and 36 that specifies the base of the number in numString.
  251. * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
  252. * All other strings are considered decimal.
  253. */
  254. parseInt(string: string, radix?: number): number;
  255. }
  256. interface ObjectConstructor {
  257. /**
  258. * Copy the values of all of the enumerable own properties from one or more source objects to a
  259. * target object. Returns the target object.
  260. * @param target The target object to copy to.
  261. * @param sources One or more source objects to copy properties from.
  262. */
  263. assign(target: any, ...sources: any[]): any;
  264. /**
  265. * Returns true if the values are the same value, false otherwise.
  266. * @param value1 The first value.
  267. * @param value2 The second value.
  268. */
  269. is(value1: any, value2: any): boolean;
  270. /**
  271. * Sets the prototype of a specified object o to object proto or null. Returns the object o.
  272. * @param o The object to change its prototype.
  273. * @param proto The value of the new prototype or null.
  274. * @remarks Requires `__proto__` support.
  275. */
  276. setPrototypeOf(o: any, proto: any): any;
  277. }
  278. interface RegExp {
  279. /**
  280. * Returns a string indicating the flags of the regular expression in question. This field is read-only.
  281. * The characters in this string are sequenced and concatenated in the following order:
  282. *
  283. * - "g" for global
  284. * - "i" for ignoreCase
  285. * - "m" for multiline
  286. * - "u" for unicode
  287. * - "y" for sticky
  288. *
  289. * If no flags are set, the value is the empty string.
  290. */
  291. flags: string;
  292. }
  293. interface Math {
  294. /**
  295. * Returns the number of leading zero bits in the 32-bit binary representation of a number.
  296. * @param x A numeric expression.
  297. */
  298. clz32(x: number): number;
  299. /**
  300. * Returns the result of 32-bit multiplication of two numbers.
  301. * @param x First number
  302. * @param y Second number
  303. */
  304. imul(x: number, y: number): number;
  305. /**
  306. * Returns the sign of the x, indicating whether x is positive, negative or zero.
  307. * @param x The numeric expression to test
  308. */
  309. sign(x: number): number;
  310. /**
  311. * Returns the base 10 logarithm of a number.
  312. * @param x A numeric expression.
  313. */
  314. log10(x: number): number;
  315. /**
  316. * Returns the base 2 logarithm of a number.
  317. * @param x A numeric expression.
  318. */
  319. log2(x: number): number;
  320. /**
  321. * Returns the natural logarithm of 1 + x.
  322. * @param x A numeric expression.
  323. */
  324. log1p(x: number): number;
  325. /**
  326. * Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of
  327. * the natural logarithms).
  328. * @param x A numeric expression.
  329. */
  330. expm1(x: number): number;
  331. /**
  332. * Returns the hyperbolic cosine of a number.
  333. * @param x A numeric expression that contains an angle measured in radians.
  334. */
  335. cosh(x: number): number;
  336. /**
  337. * Returns the hyperbolic sine of a number.
  338. * @param x A numeric expression that contains an angle measured in radians.
  339. */
  340. sinh(x: number): number;
  341. /**
  342. * Returns the hyperbolic tangent of a number.
  343. * @param x A numeric expression that contains an angle measured in radians.
  344. */
  345. tanh(x: number): number;
  346. /**
  347. * Returns the inverse hyperbolic cosine of a number.
  348. * @param x A numeric expression that contains an angle measured in radians.
  349. */
  350. acosh(x: number): number;
  351. /**
  352. * Returns the inverse hyperbolic sine of a number.
  353. * @param x A numeric expression that contains an angle measured in radians.
  354. */
  355. asinh(x: number): number;
  356. /**
  357. * Returns the inverse hyperbolic tangent of a number.
  358. * @param x A numeric expression that contains an angle measured in radians.
  359. */
  360. atanh(x: number): number;
  361. /**
  362. * Returns the square root of the sum of squares of its arguments.
  363. * @param values Values to compute the square root for.
  364. * If no arguments are passed, the result is +0.
  365. * If there is only one argument, the result is the absolute value.
  366. * If any argument is +Infinity or -Infinity, the result is +Infinity.
  367. * If any argument is NaN, the result is NaN.
  368. * If all arguments are either +0 or −0, the result is +0.
  369. */
  370. hypot(...values: number[]): number;
  371. /**
  372. * Returns the integral part of the a numeric expression, x, removing any fractional digits.
  373. * If x is already an integer, the result is x.
  374. * @param x A numeric expression.
  375. */
  376. trunc(x: number): number;
  377. /**
  378. * Returns the nearest single precision float representation of a number.
  379. * @param x A numeric expression.
  380. */
  381. fround(x: number): number;
  382. /**
  383. * Returns an implementation-dependent approximation to the cube root of number.
  384. * @param x A numeric expression.
  385. */
  386. cbrt(x: number): number;
  387. }
  388. interface PromiseLike<T> {
  389. /**
  390. * Attaches callbacks for the resolution and/or rejection of the Promise.
  391. * @param onfulfilled The callback to execute when the Promise is resolved.
  392. * @param onrejected The callback to execute when the Promise is rejected.
  393. * @returns A Promise for the completion of which ever callback is executed.
  394. */
  395. then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
  396. then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>;
  397. }
  398. /**
  399. * Represents the completion of an asynchronous operation
  400. */
  401. interface Promise<T> {
  402. /**
  403. * Attaches callbacks for the resolution and/or rejection of the Promise.
  404. * @param onfulfilled The callback to execute when the Promise is resolved.
  405. * @param onrejected The callback to execute when the Promise is rejected.
  406. * @returns A Promise for the completion of which ever callback is executed.
  407. */
  408. then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): Promise<TResult>;
  409. then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): Promise<TResult>;
  410. /**
  411. * Attaches a callback for only the rejection of the Promise.
  412. * @param onrejected The callback to execute when the Promise is rejected.
  413. * @returns A Promise for the completion of the callback.
  414. */
  415. catch(onrejected?: (reason: any) => T | PromiseLike<T>): Promise<T>;
  416. catch(onrejected?: (reason: any) => void): Promise<T>;
  417. }
  418. interface PromiseConstructor {
  419. /**
  420. * A reference to the prototype.
  421. */
  422. prototype: Promise<any>;
  423. /**
  424. * Creates a new Promise.
  425. * @param executor A callback used to initialize the promise. This callback is passed two arguments:
  426. * a resolve callback used resolve the promise with a value or the result of another promise,
  427. * and a reject callback used to reject the promise with a provided reason or error.
  428. */
  429. new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
  430. /**
  431. * Creates a Promise that is resolved with an array of results when all of the provided Promises
  432. * resolve, or rejected when any Promise is rejected.
  433. * @param values An array of Promises.
  434. * @returns A new Promise.
  435. */
  436. all<T>(values: IterableShim<T | PromiseLike<T>>): Promise<T[]>;
  437. /**
  438. * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
  439. * or rejected.
  440. * @param values An array of Promises.
  441. * @returns A new Promise.
  442. */
  443. race<T>(values: IterableShim<T | PromiseLike<T>>): Promise<T>;
  444. /**
  445. * Creates a new rejected promise for the provided reason.
  446. * @param reason The reason the promise was rejected.
  447. * @returns A new rejected Promise.
  448. */
  449. reject(reason: any): Promise<void>;
  450. /**
  451. * Creates a new rejected promise for the provided reason.
  452. * @param reason The reason the promise was rejected.
  453. * @returns A new rejected Promise.
  454. */
  455. reject<T>(reason: any): Promise<T>;
  456. /**
  457. * Creates a new resolved promise for the provided value.
  458. * @param value A promise.
  459. * @returns A promise whose internal state matches the provided promise.
  460. */
  461. resolve<T>(value: T | PromiseLike<T>): Promise<T>;
  462. /**
  463. * Creates a new resolved promise .
  464. * @returns A resolved promise.
  465. */
  466. resolve(): Promise<void>;
  467. }
  468. declare var Promise: PromiseConstructor;
  469. interface Map<K, V> {
  470. clear(): void;
  471. delete(key: K): boolean;
  472. forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
  473. get(key: K): V;
  474. has(key: K): boolean;
  475. set(key: K, value?: V): Map<K, V>;
  476. size: number;
  477. entries(): IterableIteratorShim<[K, V]>;
  478. keys(): IterableIteratorShim<K>;
  479. values(): IterableIteratorShim<V>;
  480. }
  481. interface MapConstructor {
  482. new <K, V>(): Map<K, V>;
  483. new <K, V>(iterable: IterableShim<[K, V]>): Map<K, V>;
  484. prototype: Map<any, any>;
  485. }
  486. declare var Map: MapConstructor;
  487. interface Set<T> {
  488. add(value: T): Set<T>;
  489. clear(): void;
  490. delete(value: T): boolean;
  491. forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
  492. has(value: T): boolean;
  493. size: number;
  494. entries(): IterableIteratorShim<[T, T]>;
  495. keys(): IterableIteratorShim<T>;
  496. values(): IterableIteratorShim<T>;
  497. '_es6-shim iterator_'(): IterableIteratorShim<T>;
  498. }
  499. interface SetConstructor {
  500. new <T>(): Set<T>;
  501. new <T>(iterable: IterableShim<T>): Set<T>;
  502. prototype: Set<any>;
  503. }
  504. declare var Set: SetConstructor;
  505. interface WeakMap<K, V> {
  506. delete(key: K): boolean;
  507. get(key: K): V;
  508. has(key: K): boolean;
  509. set(key: K, value?: V): WeakMap<K, V>;
  510. }
  511. interface WeakMapConstructor {
  512. new <K, V>(): WeakMap<K, V>;
  513. new <K, V>(iterable: IterableShim<[K, V]>): WeakMap<K, V>;
  514. prototype: WeakMap<any, any>;
  515. }
  516. declare var WeakMap: WeakMapConstructor;
  517. interface WeakSet<T> {
  518. add(value: T): WeakSet<T>;
  519. delete(value: T): boolean;
  520. has(value: T): boolean;
  521. }
  522. interface WeakSetConstructor {
  523. new <T>(): WeakSet<T>;
  524. new <T>(iterable: IterableShim<T>): WeakSet<T>;
  525. prototype: WeakSet<any>;
  526. }
  527. declare var WeakSet: WeakSetConstructor;
  528. declare namespace Reflect {
  529. function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
  530. function construct(target: Function, argumentsList: ArrayLike<any>): any;
  531. function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
  532. function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
  533. function enumerate(target: any): IterableIteratorShim<any>;
  534. function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
  535. function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor;
  536. function getPrototypeOf(target: any): any;
  537. function has(target: any, propertyKey: PropertyKey): boolean;
  538. function isExtensible(target: any): boolean;
  539. function ownKeys(target: any): Array<PropertyKey>;
  540. function preventExtensions(target: any): boolean;
  541. function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
  542. function setPrototypeOf(target: any, proto: any): boolean;
  543. }
  544. declare module "es6-shim" {
  545. var String: StringConstructor;
  546. var Array: ArrayConstructor;
  547. var Number: NumberConstructor;
  548. var Math: Math;
  549. var Object: ObjectConstructor;
  550. var Map: MapConstructor;
  551. var Set: SetConstructor;
  552. var WeakMap: WeakMapConstructor;
  553. var WeakSet: WeakSetConstructor;
  554. var Promise: PromiseConstructor;
  555. namespace Reflect {
  556. function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
  557. function construct(target: Function, argumentsList: ArrayLike<any>): any;
  558. function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
  559. function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
  560. function enumerate(target: any): Iterator<any>;
  561. function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
  562. function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor;
  563. function getPrototypeOf(target: any): any;
  564. function has(target: any, propertyKey: PropertyKey): boolean;
  565. function isExtensible(target: any): boolean;
  566. function ownKeys(target: any): Array<PropertyKey>;
  567. function preventExtensions(target: any): boolean;
  568. function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
  569. function setPrototypeOf(target: any, proto: any): boolean;
  570. }
  571. }