mailisk 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/package.json +1 -1
  2. package/private/dist/private/index.js +0 -28
  3. package/private/dist/private/index.js.map +0 -1
  4. package/private/dist/src/mailisk.interfaces.js +0 -3
  5. package/private/dist/src/mailisk.interfaces.js.map +0 -1
  6. package/private/dist/src/mailisk.js +0 -168
  7. package/private/dist/src/mailisk.js.map +0 -1
  8. package/private/index.ts +0 -17
  9. package/private/node_modules/.package-lock.json +0 -44
  10. package/private/node_modules/typescript/LICENSE.txt +0 -55
  11. package/private/node_modules/typescript/README.md +0 -50
  12. package/private/node_modules/typescript/SECURITY.md +0 -41
  13. package/private/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  14. package/private/node_modules/typescript/bin/tsc +0 -2
  15. package/private/node_modules/typescript/bin/tsserver +0 -2
  16. package/private/node_modules/typescript/lib/_tsc.js +0 -133818
  17. package/private/node_modules/typescript/lib/_tsserver.js +0 -659
  18. package/private/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  19. package/private/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  20. package/private/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  21. package/private/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  22. package/private/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  23. package/private/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  24. package/private/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  25. package/private/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  26. package/private/node_modules/typescript/lib/lib.d.ts +0 -22
  27. package/private/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  28. package/private/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  29. package/private/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  30. package/private/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  31. package/private/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  32. package/private/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  33. package/private/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  34. package/private/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  35. package/private/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  36. package/private/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  37. package/private/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  38. package/private/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  39. package/private/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  40. package/private/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  41. package/private/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  42. package/private/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  43. package/private/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  44. package/private/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  45. package/private/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  46. package/private/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  47. package/private/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  48. package/private/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  49. package/private/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  50. package/private/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  51. package/private/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  52. package/private/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  53. package/private/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  54. package/private/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  55. package/private/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  56. package/private/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  57. package/private/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  58. package/private/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  59. package/private/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  60. package/private/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  61. package/private/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  62. package/private/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  63. package/private/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  64. package/private/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  65. package/private/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  66. package/private/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  67. package/private/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  68. package/private/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  69. package/private/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  70. package/private/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  71. package/private/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  72. package/private/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  73. package/private/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  74. package/private/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  75. package/private/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  76. package/private/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  77. package/private/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  78. package/private/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  79. package/private/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  80. package/private/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  81. package/private/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  82. package/private/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  83. package/private/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  84. package/private/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  85. package/private/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  86. package/private/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  87. package/private/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  88. package/private/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  89. package/private/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  90. package/private/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  91. package/private/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  92. package/private/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  93. package/private/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  94. package/private/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  95. package/private/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  96. package/private/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  97. package/private/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  98. package/private/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  99. package/private/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  100. package/private/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  101. package/private/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  102. package/private/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  103. package/private/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  104. package/private/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  105. package/private/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  106. package/private/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  107. package/private/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  108. package/private/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  109. package/private/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  110. package/private/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  111. package/private/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  112. package/private/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  113. package/private/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  114. package/private/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  115. package/private/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  116. package/private/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  117. package/private/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  118. package/private/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  119. package/private/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  120. package/private/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  121. package/private/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  122. package/private/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  123. package/private/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  124. package/private/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  125. package/private/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  126. package/private/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  127. package/private/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  128. package/private/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  129. package/private/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  130. package/private/node_modules/typescript/lib/tsc.js +0 -8
  131. package/private/node_modules/typescript/lib/tsserver.js +0 -8
  132. package/private/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  133. package/private/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  134. package/private/node_modules/typescript/lib/typesMap.json +0 -497
  135. package/private/node_modules/typescript/lib/typescript.d.ts +0 -11437
  136. package/private/node_modules/typescript/lib/typescript.js +0 -200276
  137. package/private/node_modules/typescript/lib/typingsInstaller.js +0 -8
  138. package/private/node_modules/typescript/lib/watchGuard.js +0 -53
  139. package/private/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  140. package/private/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  141. package/private/node_modules/typescript/package.json +0 -120
  142. package/private/package-lock.json +0 -53
  143. package/private/package.json +0 -17
  144. package/private/tsconfig.json +0 -103
@@ -1,23 +0,0 @@
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es2015" />
20
- /// <reference lib="dom" />
21
- /// <reference lib="dom.iterable" />
22
- /// <reference lib="webworker.importscripts" />
23
- /// <reference lib="scripthost" />
@@ -1,35 +0,0 @@
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- interface ArrayConstructor {
20
- /**
21
- * Creates an array from an async iterator or iterable object.
22
- * @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
23
- */
24
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
25
-
26
- /**
27
- * Creates an array from an async iterator or iterable object.
28
- *
29
- * @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
30
- * @param mapfn A mapping function to call on every element of itarableOrArrayLike.
31
- * Each return value is awaited before being added to result array.
32
- * @param thisArg Value of 'this' used when executing mapfn.
33
- */
34
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
35
- }
@@ -1,96 +0,0 @@
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es2024.collection" />
20
-
21
- interface ReadonlySetLike<T> {
22
- /**
23
- * Despite its name, returns an iterator of the values in the set-like.
24
- */
25
- keys(): Iterator<T>;
26
- /**
27
- * @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
28
- */
29
- has(value: T): boolean;
30
- /**
31
- * @returns the number of (unique) elements in the set-like.
32
- */
33
- readonly size: number;
34
- }
35
-
36
- interface Set<T> {
37
- /**
38
- * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
39
- */
40
- union<U>(other: ReadonlySetLike<U>): Set<T | U>;
41
- /**
42
- * @returns a new Set containing all the elements which are both in this Set and in the argument.
43
- */
44
- intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
45
- /**
46
- * @returns a new Set containing all the elements in this Set which are not also in the argument.
47
- */
48
- difference<U>(other: ReadonlySetLike<U>): Set<T>;
49
- /**
50
- * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
51
- */
52
- symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
53
- /**
54
- * @returns a boolean indicating whether all the elements in this Set are also in the argument.
55
- */
56
- isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
57
- /**
58
- * @returns a boolean indicating whether all the elements in the argument are also in this Set.
59
- */
60
- isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
61
- /**
62
- * @returns a boolean indicating whether this Set has no elements in common with the argument.
63
- */
64
- isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
65
- }
66
-
67
- interface ReadonlySet<T> {
68
- /**
69
- * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
70
- */
71
- union<U>(other: ReadonlySetLike<U>): Set<T | U>;
72
- /**
73
- * @returns a new Set containing all the elements which are both in this Set and in the argument.
74
- */
75
- intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
76
- /**
77
- * @returns a new Set containing all the elements in this Set which are not also in the argument.
78
- */
79
- difference<U>(other: ReadonlySetLike<U>): Set<T>;
80
- /**
81
- * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
82
- */
83
- symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
84
- /**
85
- * @returns a boolean indicating whether all the elements in this Set are also in the argument.
86
- */
87
- isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
88
- /**
89
- * @returns a boolean indicating whether all the elements in the argument are also in this Set.
90
- */
91
- isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
92
- /**
93
- * @returns a boolean indicating whether this Set has no elements in common with the argument.
94
- */
95
- isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
96
- }
@@ -1,29 +0,0 @@
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es2024" />
20
- /// <reference lib="esnext.intl" />
21
- /// <reference lib="esnext.decorators" />
22
- /// <reference lib="esnext.disposable" />
23
- /// <reference lib="esnext.collection" />
24
- /// <reference lib="esnext.array" />
25
- /// <reference lib="esnext.iterator" />
26
- /// <reference lib="esnext.promise" />
27
- /// <reference lib="esnext.float16" />
28
- /// <reference lib="esnext.error" />
29
- /// <reference lib="esnext.sharedmemory" />
@@ -1,28 +0,0 @@
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es2015.symbol" />
20
- /// <reference lib="decorators" />
21
-
22
- interface SymbolConstructor {
23
- readonly metadata: unique symbol;
24
- }
25
-
26
- interface Function {
27
- [Symbol.metadata]: DecoratorMetadata | null;
28
- }
@@ -1,193 +0,0 @@
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es2015.symbol" />
20
- /// <reference lib="es2015.iterable" />
21
- /// <reference lib="es2018.asynciterable" />
22
-
23
- interface SymbolConstructor {
24
- /**
25
- * A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
26
- */
27
- readonly dispose: unique symbol;
28
-
29
- /**
30
- * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
31
- */
32
- readonly asyncDispose: unique symbol;
33
- }
34
-
35
- interface Disposable {
36
- [Symbol.dispose](): void;
37
- }
38
-
39
- interface AsyncDisposable {
40
- [Symbol.asyncDispose](): PromiseLike<void>;
41
- }
42
-
43
- interface SuppressedError extends Error {
44
- error: any;
45
- suppressed: any;
46
- }
47
-
48
- interface SuppressedErrorConstructor {
49
- new (error: any, suppressed: any, message?: string): SuppressedError;
50
- (error: any, suppressed: any, message?: string): SuppressedError;
51
- readonly prototype: SuppressedError;
52
- }
53
- declare var SuppressedError: SuppressedErrorConstructor;
54
-
55
- interface DisposableStack {
56
- /**
57
- * Returns a value indicating whether this stack has been disposed.
58
- */
59
- readonly disposed: boolean;
60
- /**
61
- * Disposes each resource in the stack in the reverse order that they were added.
62
- */
63
- dispose(): void;
64
- /**
65
- * Adds a disposable resource to the stack, returning the resource.
66
- * @param value The resource to add. `null` and `undefined` will not be added, but will be returned.
67
- * @returns The provided {@link value}.
68
- */
69
- use<T extends Disposable | null | undefined>(value: T): T;
70
- /**
71
- * Adds a value and associated disposal callback as a resource to the stack.
72
- * @param value The value to add.
73
- * @param onDispose The callback to use in place of a `[Symbol.dispose]()` method. Will be invoked with `value`
74
- * as the first parameter.
75
- * @returns The provided {@link value}.
76
- */
77
- adopt<T>(value: T, onDispose: (value: T) => void): T;
78
- /**
79
- * Adds a callback to be invoked when the stack is disposed.
80
- */
81
- defer(onDispose: () => void): void;
82
- /**
83
- * Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.
84
- * @example
85
- * ```ts
86
- * class C {
87
- * #res1: Disposable;
88
- * #res2: Disposable;
89
- * #disposables: DisposableStack;
90
- * constructor() {
91
- * // stack will be disposed when exiting constructor for any reason
92
- * using stack = new DisposableStack();
93
- *
94
- * // get first resource
95
- * this.#res1 = stack.use(getResource1());
96
- *
97
- * // get second resource. If this fails, both `stack` and `#res1` will be disposed.
98
- * this.#res2 = stack.use(getResource2());
99
- *
100
- * // all operations succeeded, move resources out of `stack` so that they aren't disposed
101
- * // when constructor exits
102
- * this.#disposables = stack.move();
103
- * }
104
- *
105
- * [Symbol.dispose]() {
106
- * this.#disposables.dispose();
107
- * }
108
- * }
109
- * ```
110
- */
111
- move(): DisposableStack;
112
- [Symbol.dispose](): void;
113
- readonly [Symbol.toStringTag]: string;
114
- }
115
-
116
- interface DisposableStackConstructor {
117
- new (): DisposableStack;
118
- readonly prototype: DisposableStack;
119
- }
120
- declare var DisposableStack: DisposableStackConstructor;
121
-
122
- interface AsyncDisposableStack {
123
- /**
124
- * Returns a value indicating whether this stack has been disposed.
125
- */
126
- readonly disposed: boolean;
127
- /**
128
- * Disposes each resource in the stack in the reverse order that they were added.
129
- */
130
- disposeAsync(): Promise<void>;
131
- /**
132
- * Adds a disposable resource to the stack, returning the resource.
133
- * @param value The resource to add. `null` and `undefined` will not be added, but will be returned.
134
- * @returns The provided {@link value}.
135
- */
136
- use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;
137
- /**
138
- * Adds a value and associated disposal callback as a resource to the stack.
139
- * @param value The value to add.
140
- * @param onDisposeAsync The callback to use in place of a `[Symbol.asyncDispose]()` method. Will be invoked with `value`
141
- * as the first parameter.
142
- * @returns The provided {@link value}.
143
- */
144
- adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;
145
- /**
146
- * Adds a callback to be invoked when the stack is disposed.
147
- */
148
- defer(onDisposeAsync: () => PromiseLike<void> | void): void;
149
- /**
150
- * Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.
151
- * @example
152
- * ```ts
153
- * class C {
154
- * #res1: Disposable;
155
- * #res2: Disposable;
156
- * #disposables: DisposableStack;
157
- * constructor() {
158
- * // stack will be disposed when exiting constructor for any reason
159
- * using stack = new DisposableStack();
160
- *
161
- * // get first resource
162
- * this.#res1 = stack.use(getResource1());
163
- *
164
- * // get second resource. If this fails, both `stack` and `#res1` will be disposed.
165
- * this.#res2 = stack.use(getResource2());
166
- *
167
- * // all operations succeeded, move resources out of `stack` so that they aren't disposed
168
- * // when constructor exits
169
- * this.#disposables = stack.move();
170
- * }
171
- *
172
- * [Symbol.dispose]() {
173
- * this.#disposables.dispose();
174
- * }
175
- * }
176
- * ```
177
- */
178
- move(): AsyncDisposableStack;
179
- [Symbol.asyncDispose](): Promise<void>;
180
- readonly [Symbol.toStringTag]: string;
181
- }
182
-
183
- interface AsyncDisposableStackConstructor {
184
- new (): AsyncDisposableStack;
185
- readonly prototype: AsyncDisposableStack;
186
- }
187
- declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
188
-
189
- interface IteratorObject<T, TReturn, TNext> extends Disposable {
190
- }
191
-
192
- interface AsyncIteratorObject<T, TReturn, TNext> extends AsyncDisposable {
193
- }
@@ -1,24 +0,0 @@
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- interface ErrorConstructor {
20
- /**
21
- * Indicates whether the argument provided is a built-in Error instance or not.
22
- */
23
- isError(error: unknown): error is Error;
24
- }