Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. /******************************************************************************
  2. Copyright (c) Microsoft Corporation.
  3. Permission to use, copy, modify, and/or distribute this software for any
  4. purpose with or without fee is hereby granted.
  5. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  6. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  7. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  8. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  9. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  10. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  11. PERFORMANCE OF THIS SOFTWARE.
  12. ***************************************************************************** */
  13. /**
  14. * Used to shim class extends.
  15. *
  16. * @param d The derived class.
  17. * @param b The base class.
  18. */
  19. export declare function __extends(d: Function, b: Function): void;
  20. /**
  21. * Copy the values of all of the enumerable own properties from one or more source objects to a
  22. * target object. Returns the target object.
  23. *
  24. * @param t The target object to copy to.
  25. * @param sources One or more source objects from which to copy properties
  26. */
  27. export declare function __assign(t: any, ...sources: any[]): any;
  28. /**
  29. * Performs a rest spread on an object.
  30. *
  31. * @param t The source value.
  32. * @param propertyNames The property names excluded from the rest spread.
  33. */
  34. export declare function __rest(t: any, propertyNames: (string | symbol)[]): any;
  35. /**
  36. * Applies decorators to a target object
  37. *
  38. * @param decorators The set of decorators to apply.
  39. * @param target The target object.
  40. * @param key If specified, the own property to apply the decorators to.
  41. * @param desc The property descriptor, defaults to fetching the descriptor from the target object.
  42. * @experimental
  43. */
  44. export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
  45. /**
  46. * Creates an observing function decorator from a parameter decorator.
  47. *
  48. * @param paramIndex The parameter index to apply the decorator to.
  49. * @param decorator The parameter decorator to apply. Note that the return value is ignored.
  50. * @experimental
  51. */
  52. export declare function __param(paramIndex: number, decorator: Function): Function;
  53. /**
  54. * Creates a decorator that sets metadata.
  55. *
  56. * @param metadataKey The metadata key
  57. * @param metadataValue The metadata value
  58. * @experimental
  59. */
  60. export declare function __metadata(metadataKey: any, metadataValue: any): Function;
  61. /**
  62. * Converts a generator function into a pseudo-async function, by treating each `yield` as an `await`.
  63. *
  64. * @param thisArg The reference to use as the `this` value in the generator function
  65. * @param _arguments The optional arguments array
  66. * @param P The optional promise constructor argument, defaults to the `Promise` property of the global object.
  67. * @param generator The generator function
  68. */
  69. export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
  70. /**
  71. * Creates an Iterator object using the body as the implementation.
  72. *
  73. * @param thisArg The reference to use as the `this` value in the function
  74. * @param body The generator state-machine based implementation.
  75. *
  76. * @see [./docs/generator.md]
  77. */
  78. export declare function __generator(thisArg: any, body: Function): any;
  79. /**
  80. * Creates bindings for all enumerable properties of `m` on `exports`
  81. *
  82. * @param m The source object
  83. * @param exports The `exports` object.
  84. */
  85. export declare function __exportStar(m: any, o: any): void;
  86. /**
  87. * Creates a value iterator from an `Iterable` or `ArrayLike` object.
  88. *
  89. * @param o The object.
  90. * @throws {TypeError} If `o` is neither `Iterable`, nor an `ArrayLike`.
  91. */
  92. export declare function __values(o: any): any;
  93. /**
  94. * Reads values from an `Iterable` or `ArrayLike` object and returns the resulting array.
  95. *
  96. * @param o The object to read from.
  97. * @param n The maximum number of arguments to read, defaults to `Infinity`.
  98. */
  99. export declare function __read(o: any, n?: number): any[];
  100. /**
  101. * Creates an array from iterable spread.
  102. *
  103. * @param args The Iterable objects to spread.
  104. * @deprecated since TypeScript 4.2 - Use `__spreadArray`
  105. */
  106. export declare function __spread(...args: any[][]): any[];
  107. /**
  108. * Creates an array from array spread.
  109. *
  110. * @param args The ArrayLikes to spread into the resulting array.
  111. * @deprecated since TypeScript 4.2 - Use `__spreadArray`
  112. */
  113. export declare function __spreadArrays(...args: any[][]): any[];
  114. /**
  115. * Spreads the `from` array into the `to` array.
  116. *
  117. * @param pack Replace empty elements with `undefined`.
  118. */
  119. export declare function __spreadArray(to: any[], from: any[], pack?: boolean): any[];
  120. /**
  121. * Creates an object that signals to `__asyncGenerator` that it shouldn't be yielded,
  122. * and instead should be awaited and the resulting value passed back to the generator.
  123. *
  124. * @param v The value to await.
  125. */
  126. export declare function __await(v: any): any;
  127. /**
  128. * Converts a generator function into an async generator function, by using `yield __await`
  129. * in place of normal `await`.
  130. *
  131. * @param thisArg The reference to use as the `this` value in the generator function
  132. * @param _arguments The optional arguments array
  133. * @param generator The generator function
  134. */
  135. export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any;
  136. /**
  137. * Used to wrap a potentially async iterator in such a way so that it wraps the result
  138. * of calling iterator methods of `o` in `__await` instances, and then yields the awaited values.
  139. *
  140. * @param o The potentially async iterator.
  141. * @returns A synchronous iterator yielding `__await` instances on every odd invocation
  142. * and returning the awaited `IteratorResult` passed to `next` every even invocation.
  143. */
  144. export declare function __asyncDelegator(o: any): any;
  145. /**
  146. * Creates a value async iterator from an `AsyncIterable`, `Iterable` or `ArrayLike` object.
  147. *
  148. * @param o The object.
  149. * @throws {TypeError} If `o` is neither `AsyncIterable`, `Iterable`, nor an `ArrayLike`.
  150. */
  151. export declare function __asyncValues(o: any): any;
  152. /**
  153. * Creates a `TemplateStringsArray` frozen object from the `cooked` and `raw` arrays.
  154. *
  155. * @param cooked The cooked possibly-sparse array.
  156. * @param raw The raw string content.
  157. */
  158. export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray;
  159. /**
  160. * Used to shim default and named imports in ECMAScript Modules transpiled to CommonJS.
  161. *
  162. * ```js
  163. * import Default, { Named, Other } from "mod";
  164. * // or
  165. * import { default as Default, Named, Other } from "mod";
  166. * ```
  167. *
  168. * @param mod The CommonJS module exports object.
  169. */
  170. export declare function __importStar<T>(mod: T): T;
  171. /**
  172. * Used to shim default imports in ECMAScript Modules transpiled to CommonJS.
  173. *
  174. * ```js
  175. * import Default from "mod";
  176. * ```
  177. *
  178. * @param mod The CommonJS module exports object.
  179. */
  180. export declare function __importDefault<T>(mod: T): T | { default: T };
  181. /**
  182. * Emulates reading a private instance field.
  183. *
  184. * @param receiver The instance from which to read the private field.
  185. * @param state A WeakMap containing the private field value for an instance.
  186. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  187. *
  188. * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
  189. */
  190. export declare function __classPrivateFieldGet<T extends object, V>(
  191. receiver: T,
  192. state: { has(o: T): boolean, get(o: T): V | undefined },
  193. kind?: "f"
  194. ): V;
  195. /**
  196. * Emulates reading a private static field.
  197. *
  198. * @param receiver The object from which to read the private static field.
  199. * @param state The class constructor containing the definition of the static field.
  200. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  201. * @param f The descriptor that holds the static field value.
  202. *
  203. * @throws {TypeError} If `receiver` is not `state`.
  204. */
  205. export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V>(
  206. receiver: T,
  207. state: T,
  208. kind: "f",
  209. f: { value: V }
  210. ): V;
  211. /**
  212. * Emulates evaluating a private instance "get" accessor.
  213. *
  214. * @param receiver The instance on which to evaluate the private "get" accessor.
  215. * @param state A WeakSet used to verify an instance supports the private "get" accessor.
  216. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  217. * @param f The "get" accessor function to evaluate.
  218. *
  219. * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
  220. */
  221. export declare function __classPrivateFieldGet<T extends object, V>(
  222. receiver: T,
  223. state: { has(o: T): boolean },
  224. kind: "a",
  225. f: () => V
  226. ): V;
  227. /**
  228. * Emulates evaluating a private static "get" accessor.
  229. *
  230. * @param receiver The object on which to evaluate the private static "get" accessor.
  231. * @param state The class constructor containing the definition of the static "get" accessor.
  232. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  233. * @param f The "get" accessor function to evaluate.
  234. *
  235. * @throws {TypeError} If `receiver` is not `state`.
  236. */
  237. export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V>(
  238. receiver: T,
  239. state: T,
  240. kind: "a",
  241. f: () => V
  242. ): V;
  243. /**
  244. * Emulates reading a private instance method.
  245. *
  246. * @param receiver The instance from which to read a private method.
  247. * @param state A WeakSet used to verify an instance supports the private method.
  248. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  249. * @param f The function to return as the private instance method.
  250. *
  251. * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
  252. */
  253. export declare function __classPrivateFieldGet<T extends object, V extends (...args: any[]) => unknown>(
  254. receiver: T,
  255. state: { has(o: T): boolean },
  256. kind: "m",
  257. f: V
  258. ): V;
  259. /**
  260. * Emulates reading a private static method.
  261. *
  262. * @param receiver The object from which to read the private static method.
  263. * @param state The class constructor containing the definition of the static method.
  264. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  265. * @param f The function to return as the private static method.
  266. *
  267. * @throws {TypeError} If `receiver` is not `state`.
  268. */
  269. export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V extends (...args: any[]) => unknown>(
  270. receiver: T,
  271. state: T,
  272. kind: "m",
  273. f: V
  274. ): V;
  275. /**
  276. * Emulates writing to a private instance field.
  277. *
  278. * @param receiver The instance on which to set a private field value.
  279. * @param state A WeakMap used to store the private field value for an instance.
  280. * @param value The value to store in the private field.
  281. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  282. *
  283. * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
  284. */
  285. export declare function __classPrivateFieldSet<T extends object, V>(
  286. receiver: T,
  287. state: { has(o: T): boolean, set(o: T, value: V): unknown },
  288. value: V,
  289. kind?: "f"
  290. ): V;
  291. /**
  292. * Emulates writing to a private static field.
  293. *
  294. * @param receiver The object on which to set the private static field.
  295. * @param state The class constructor containing the definition of the private static field.
  296. * @param value The value to store in the private field.
  297. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  298. * @param f The descriptor that holds the static field value.
  299. *
  300. * @throws {TypeError} If `receiver` is not `state`.
  301. */
  302. export declare function __classPrivateFieldSet<T extends new (...args: any[]) => unknown, V>(
  303. receiver: T,
  304. state: T,
  305. value: V,
  306. kind: "f",
  307. f: { value: V }
  308. ): V;
  309. /**
  310. * Emulates writing to a private instance "set" accessor.
  311. *
  312. * @param receiver The instance on which to evaluate the private instance "set" accessor.
  313. * @param state A WeakSet used to verify an instance supports the private "set" accessor.
  314. * @param value The value to store in the private accessor.
  315. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  316. * @param f The "set" accessor function to evaluate.
  317. *
  318. * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
  319. */
  320. export declare function __classPrivateFieldSet<T extends object, V>(
  321. receiver: T,
  322. state: { has(o: T): boolean },
  323. value: V,
  324. kind: "a",
  325. f: (v: V) => void
  326. ): V;
  327. /**
  328. * Emulates writing to a private static "set" accessor.
  329. *
  330. * @param receiver The object on which to evaluate the private static "set" accessor.
  331. * @param state The class constructor containing the definition of the static "set" accessor.
  332. * @param value The value to store in the private field.
  333. * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
  334. * @param f The "set" accessor function to evaluate.
  335. *
  336. * @throws {TypeError} If `receiver` is not `state`.
  337. */
  338. export declare function __classPrivateFieldSet<T extends new (...args: any[]) => unknown, V>(
  339. receiver: T,
  340. state: T,
  341. value: V,
  342. kind: "a",
  343. f: (v: V) => void
  344. ): V;
  345. /**
  346. * Checks for the existence of a private field/method/accessor.
  347. *
  348. * @param state The class constructor containing the static member, or the WeakMap or WeakSet associated with a private instance member.
  349. * @param receiver The object for which to test the presence of the private member.
  350. */
  351. export declare function __classPrivateFieldIn(
  352. state: (new (...args: any[]) => unknown) | { has(o: any): boolean },
  353. receiver: unknown,
  354. ): boolean;
  355. /**
  356. * Creates a re-export binding on `object` with key `objectKey` that references `target[key]`.
  357. *
  358. * @param object The local `exports` object.
  359. * @param target The object to re-export from.
  360. * @param key The property key of `target` to re-export.
  361. * @param objectKey The property key to re-export as. Defaults to `key`.
  362. */
  363. export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void;