tslib.d.ts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. export declare function __extends(d: Function, b: Function): void;
  14. export declare function __assign(t: any, ...sources: any[]): any;
  15. export declare function __rest(t: any, propertyNames: (string | symbol)[]): any;
  16. export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
  17. export declare function __param(paramIndex: number, decorator: Function): Function;
  18. export declare function __metadata(metadataKey: any, metadataValue: any): Function;
  19. export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
  20. export declare function __generator(thisArg: any, body: Function): any;
  21. export declare function __exportStar(m: any, o: any): void;
  22. export declare function __values(o: any): any;
  23. export declare function __read(o: any, n?: number): any[];
  24. /** @deprecated since TypeScript 4.2 */
  25. export declare function __spread(...args: any[][]): any[];
  26. /** @deprecated since TypeScript 4.2 */
  27. export declare function __spreadArrays(...args: any[][]): any[];
  28. export declare function __spreadArray(to: any[], from: any[], pack?: boolean): any[];
  29. export declare function __await(v: any): any;
  30. export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any;
  31. export declare function __asyncDelegator(o: any): any;
  32. export declare function __asyncValues(o: any): any;
  33. export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray;
  34. export declare function __importStar<T>(mod: T): T;
  35. export declare function __importDefault<T>(mod: T): T | { default: T };
  36. /**
  37. * Reading from a private instance field
  38. */
  39. export declare function __classPrivateFieldGet<T extends object, V>(
  40. receiver: T,
  41. state: { has(o: T): boolean, get(o: T): V | undefined },
  42. kind?: "f"
  43. ): V;
  44. /**
  45. * Reading from a private static field
  46. */
  47. export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V>(
  48. receiver: T,
  49. state: T,
  50. kind: "f",
  51. f: { value: V }
  52. ): V;
  53. /**
  54. * Reading from a private instance get accessor
  55. */
  56. export declare function __classPrivateFieldGet<T extends object, V>(
  57. receiver: T,
  58. state: { has(o: T): boolean },
  59. kind: "a",
  60. f: () => V
  61. ): V;
  62. /**
  63. * Reading from a private static get accessor
  64. */
  65. export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V>(
  66. receiver: T,
  67. state: T,
  68. kind: "a",
  69. f: () => V
  70. ): V;
  71. /**
  72. * Reading from a private instance method
  73. */
  74. export declare function __classPrivateFieldGet<T extends object, V extends (...args: any[]) => unknown>(
  75. receiver: T,
  76. state: { has(o: T): boolean },
  77. kind: "m",
  78. f: V
  79. ): V;
  80. /**
  81. * Reading from a private static method
  82. */
  83. export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V extends (...args: any[]) => unknown>(
  84. receiver: T,
  85. state: T,
  86. kind: "m",
  87. f: V
  88. ): V;
  89. /**
  90. * Writing to a private instance field
  91. */
  92. export declare function __classPrivateFieldSet<T extends object, V>(
  93. receiver: T,
  94. state: { has(o: T): boolean, set(o: T, value: V): unknown },
  95. value: V,
  96. kind?: "f"
  97. ): V;
  98. /**
  99. * Writing to a private static field
  100. */
  101. export declare function __classPrivateFieldSet<T extends new (...args: any[]) => unknown, V>(
  102. receiver: T,
  103. state: T,
  104. value: V,
  105. kind: "f",
  106. f: { value: V }
  107. ): V;
  108. /**
  109. * Writing to a private instance set accessor
  110. */
  111. export declare function __classPrivateFieldSet<T extends object, V>(
  112. receiver: T,
  113. state: { has(o: T): boolean },
  114. value: V,
  115. kind: "a",
  116. f: (v: V) => void
  117. ): V;
  118. /**
  119. * Writing to a private static set accessor
  120. */
  121. export declare function __classPrivateFieldSet<T extends new (...args: any[]) => unknown, V>(
  122. receiver: T,
  123. state: T,
  124. value: V,
  125. kind: "a",
  126. f: (v: V) => void
  127. ): V;
  128. export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void;