@bikky/compiler 0.0.31 → 0.0.33

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 (99) hide show
  1. package/Execution/bikc +1 -1
  2. package/Execution/bikcserver +2 -0
  3. package/Execution/generate.mjs +4 -3
  4. package/Execution/generate.mjs.map +1 -1
  5. package/Execution/generate.mts +4 -3
  6. package/package.json +3 -2
  7. package/tsconfig.build.libs.tsbuildinfo +1 -1
  8. package/Cache/lib.d.ts +0 -22
  9. package/Cache/lib.decorators.d.ts +0 -386
  10. package/Cache/lib.decorators.legacy.d.ts +0 -22
  11. package/Cache/lib.dom.asynciterable.d.ts +0 -28
  12. package/Cache/lib.dom.d.ts +0 -28418
  13. package/Cache/lib.dom.iterable.d.ts +0 -467
  14. package/Cache/lib.es2015.collection.d.ts +0 -147
  15. package/Cache/lib.es2015.core.d.ts +0 -557
  16. package/Cache/lib.es2015.d.ts +0 -28
  17. package/Cache/lib.es2015.generator.d.ts +0 -77
  18. package/Cache/lib.es2015.iterable.d.ts +0 -495
  19. package/Cache/lib.es2015.promise.d.ts +0 -81
  20. package/Cache/lib.es2015.proxy.d.ts +0 -128
  21. package/Cache/lib.es2015.reflect.d.ts +0 -144
  22. package/Cache/lib.es2015.symbol.d.ts +0 -46
  23. package/Cache/lib.es2015.symbol.wellknown.d.ts +0 -326
  24. package/Cache/lib.es2016.array.include.d.ts +0 -116
  25. package/Cache/lib.es2016.d.ts +0 -21
  26. package/Cache/lib.es2016.full.d.ts +0 -23
  27. package/Cache/lib.es2016.intl.d.ts +0 -31
  28. package/Cache/lib.es2017.d.ts +0 -25
  29. package/Cache/lib.es2017.date.d.ts +0 -31
  30. package/Cache/lib.es2017.full.d.ts +0 -23
  31. package/Cache/lib.es2017.intl.d.ts +0 -44
  32. package/Cache/lib.es2017.object.d.ts +0 -49
  33. package/Cache/lib.es2017.sharedmemory.d.ts +0 -135
  34. package/Cache/lib.es2017.string.d.ts +0 -45
  35. package/Cache/lib.es2017.typedarrays.d.ts +0 -53
  36. package/Cache/lib.es2018.asyncgenerator.d.ts +0 -77
  37. package/Cache/lib.es2018.asynciterable.d.ts +0 -43
  38. package/Cache/lib.es2018.d.ts +0 -24
  39. package/Cache/lib.es2018.full.d.ts +0 -24
  40. package/Cache/lib.es2018.intl.d.ts +0 -71
  41. package/Cache/lib.es2018.promise.d.ts +0 -30
  42. package/Cache/lib.es2018.regexp.d.ts +0 -37
  43. package/Cache/lib.es2019.array.d.ts +0 -79
  44. package/Cache/lib.es2019.d.ts +0 -24
  45. package/Cache/lib.es2019.full.d.ts +0 -24
  46. package/Cache/lib.es2019.intl.d.ts +0 -23
  47. package/Cache/lib.es2019.object.d.ts +0 -33
  48. package/Cache/lib.es2019.string.d.ts +0 -37
  49. package/Cache/lib.es2019.symbol.d.ts +0 -24
  50. package/Cache/lib.es2020.bigint.d.ts +0 -728
  51. package/Cache/lib.es2020.d.ts +0 -27
  52. package/Cache/lib.es2020.date.d.ts +0 -42
  53. package/Cache/lib.es2020.full.d.ts +0 -24
  54. package/Cache/lib.es2020.intl.d.ts +0 -449
  55. package/Cache/lib.es2020.number.d.ts +0 -28
  56. package/Cache/lib.es2020.promise.d.ts +0 -47
  57. package/Cache/lib.es2020.sharedmemory.d.ts +0 -97
  58. package/Cache/lib.es2020.string.d.ts +0 -42
  59. package/Cache/lib.es2020.symbol.wellknown.d.ts +0 -37
  60. package/Cache/lib.es2021.d.ts +0 -23
  61. package/Cache/lib.es2021.full.d.ts +0 -24
  62. package/Cache/lib.es2021.intl.d.ts +0 -166
  63. package/Cache/lib.es2021.promise.d.ts +0 -48
  64. package/Cache/lib.es2021.string.d.ts +0 -33
  65. package/Cache/lib.es2021.weakref.d.ts +0 -76
  66. package/Cache/lib.es2022.array.d.ts +0 -121
  67. package/Cache/lib.es2022.d.ts +0 -26
  68. package/Cache/lib.es2022.error.d.ts +0 -73
  69. package/Cache/lib.es2022.full.d.ts +0 -24
  70. package/Cache/lib.es2022.intl.d.ts +0 -117
  71. package/Cache/lib.es2022.object.d.ts +0 -26
  72. package/Cache/lib.es2022.regexp.d.ts +0 -39
  73. package/Cache/lib.es2022.sharedmemory.d.ts +0 -39
  74. package/Cache/lib.es2022.string.d.ts +0 -25
  75. package/Cache/lib.es2023.array.d.ts +0 -924
  76. package/Cache/lib.es2023.collection.d.ts +0 -21
  77. package/Cache/lib.es2023.d.ts +0 -21
  78. package/Cache/lib.es2023.full.d.ts +0 -24
  79. package/Cache/lib.es5.d.ts +0 -4563
  80. package/Cache/lib.es6.d.ts +0 -23
  81. package/Cache/lib.esnext.collection.d.ts +0 -29
  82. package/Cache/lib.esnext.d.ts +0 -25
  83. package/Cache/lib.esnext.decorators.d.ts +0 -28
  84. package/Cache/lib.esnext.disposable.d.ts +0 -185
  85. package/Cache/lib.esnext.full.d.ts +0 -24
  86. package/Cache/lib.esnext.intl.d.ts +0 -28
  87. package/Cache/lib.esnext.object.d.ts +0 -29
  88. package/Cache/lib.esnext.promise.d.ts +0 -35
  89. package/Cache/lib.scripthost.d.ts +0 -322
  90. package/Cache/lib.webworker.asynciterable.d.ts +0 -28
  91. package/Cache/lib.webworker.d.ts +0 -9417
  92. package/Cache/lib.webworker.importscripts.d.ts +0 -23
  93. package/Cache/lib.webworker.iterable.d.ts +0 -271
  94. package/Cache/tsc.js +0 -192208
  95. package/Cache/tsserver.js +0 -196376
  96. package/Cache/tsserverlibrary.d.ts +0 -17
  97. package/Cache/tsserverlibrary.js +0 -21
  98. package/Cache/typescript.d.ts +0 -11766
  99. package/Cache/typescript.js +0 -191064
@@ -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,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
- interface MapConstructor {
20
- /**
21
- * Groups members of an iterable according to the return value of the passed callback.
22
- * @param items An iterable.
23
- * @param keySelector A callback which will be invoked for each item in items.
24
- */
25
- groupBy<K, T>(
26
- items: Iterable<T>,
27
- keySelector: (item: T, index: number) => K,
28
- ): Map<K, T[]>;
29
- }
@@ -1,25 +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="es2023" />
20
- /// <reference lib="esnext.intl" />
21
- /// <reference lib="esnext.decorators" />
22
- /// <reference lib="esnext.disposable" />
23
- /// <reference lib="esnext.promise" />
24
- /// <reference lib="esnext.object" />
25
- /// <reference lib="esnext.collection" />
@@ -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,185 +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
-
21
- interface SymbolConstructor {
22
- /**
23
- * A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
24
- */
25
- readonly dispose: unique symbol;
26
-
27
- /**
28
- * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
29
- */
30
- readonly asyncDispose: unique symbol;
31
- }
32
-
33
- interface Disposable {
34
- [Symbol.dispose](): void;
35
- }
36
-
37
- interface AsyncDisposable {
38
- [Symbol.asyncDispose](): PromiseLike<void>;
39
- }
40
-
41
- interface SuppressedError extends Error {
42
- error: any;
43
- suppressed: any;
44
- }
45
-
46
- interface SuppressedErrorConstructor {
47
- new (error: any, suppressed: any, message?: string): SuppressedError;
48
- (error: any, suppressed: any, message?: string): SuppressedError;
49
- readonly prototype: SuppressedError;
50
- }
51
- declare var SuppressedError: SuppressedErrorConstructor;
52
-
53
- interface DisposableStack {
54
- /**
55
- * Returns a value indicating whether this stack has been disposed.
56
- */
57
- readonly disposed: boolean;
58
- /**
59
- * Disposes each resource in the stack in the reverse order that they were added.
60
- */
61
- dispose(): void;
62
- /**
63
- * Adds a disposable resource to the stack, returning the resource.
64
- * @param value The resource to add. `null` and `undefined` will not be added, but will be returned.
65
- * @returns The provided {@link value}.
66
- */
67
- use<T extends Disposable | null | undefined>(value: T): T;
68
- /**
69
- * Adds a value and associated disposal callback as a resource to the stack.
70
- * @param value The value to add.
71
- * @param onDispose The callback to use in place of a `[Symbol.dispose]()` method. Will be invoked with `value`
72
- * as the first parameter.
73
- * @returns The provided {@link value}.
74
- */
75
- adopt<T>(value: T, onDispose: (value: T) => void): T;
76
- /**
77
- * Adds a callback to be invoked when the stack is disposed.
78
- */
79
- defer(onDispose: () => void): void;
80
- /**
81
- * Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.
82
- * @example
83
- * ```ts
84
- * class C {
85
- * #res1: Disposable;
86
- * #res2: Disposable;
87
- * #disposables: DisposableStack;
88
- * constructor() {
89
- * // stack will be disposed when exiting constructor for any reason
90
- * using stack = new DisposableStack();
91
- *
92
- * // get first resource
93
- * this.#res1 = stack.use(getResource1());
94
- *
95
- * // get second resource. If this fails, both `stack` and `#res1` will be disposed.
96
- * this.#res2 = stack.use(getResource2());
97
- *
98
- * // all operations succeeded, move resources out of `stack` so that they aren't disposed
99
- * // when constructor exits
100
- * this.#disposables = stack.move();
101
- * }
102
- *
103
- * [Symbol.dispose]() {
104
- * this.#disposables.dispose();
105
- * }
106
- * }
107
- * ```
108
- */
109
- move(): DisposableStack;
110
- [Symbol.dispose](): void;
111
- readonly [Symbol.toStringTag]: string;
112
- }
113
-
114
- interface DisposableStackConstructor {
115
- new (): DisposableStack;
116
- readonly prototype: DisposableStack;
117
- }
118
- declare var DisposableStack: DisposableStackConstructor;
119
-
120
- interface AsyncDisposableStack {
121
- /**
122
- * Returns a value indicating whether this stack has been disposed.
123
- */
124
- readonly disposed: boolean;
125
- /**
126
- * Disposes each resource in the stack in the reverse order that they were added.
127
- */
128
- disposeAsync(): Promise<void>;
129
- /**
130
- * Adds a disposable resource to the stack, returning the resource.
131
- * @param value The resource to add. `null` and `undefined` will not be added, but will be returned.
132
- * @returns The provided {@link value}.
133
- */
134
- use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;
135
- /**
136
- * Adds a value and associated disposal callback as a resource to the stack.
137
- * @param value The value to add.
138
- * @param onDisposeAsync The callback to use in place of a `[Symbol.asyncDispose]()` method. Will be invoked with `value`
139
- * as the first parameter.
140
- * @returns The provided {@link value}.
141
- */
142
- adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;
143
- /**
144
- * Adds a callback to be invoked when the stack is disposed.
145
- */
146
- defer(onDisposeAsync: () => PromiseLike<void> | void): void;
147
- /**
148
- * Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.
149
- * @example
150
- * ```ts
151
- * class C {
152
- * #res1: Disposable;
153
- * #res2: Disposable;
154
- * #disposables: DisposableStack;
155
- * constructor() {
156
- * // stack will be disposed when exiting constructor for any reason
157
- * using stack = new DisposableStack();
158
- *
159
- * // get first resource
160
- * this.#res1 = stack.use(getResource1());
161
- *
162
- * // get second resource. If this fails, both `stack` and `#res1` will be disposed.
163
- * this.#res2 = stack.use(getResource2());
164
- *
165
- * // all operations succeeded, move resources out of `stack` so that they aren't disposed
166
- * // when constructor exits
167
- * this.#disposables = stack.move();
168
- * }
169
- *
170
- * [Symbol.dispose]() {
171
- * this.#disposables.dispose();
172
- * }
173
- * }
174
- * ```
175
- */
176
- move(): AsyncDisposableStack;
177
- [Symbol.asyncDispose](): Promise<void>;
178
- readonly [Symbol.toStringTag]: string;
179
- }
180
-
181
- interface AsyncDisposableStackConstructor {
182
- new (): AsyncDisposableStack;
183
- readonly prototype: AsyncDisposableStack;
184
- }
185
- declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
@@ -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
- /// <reference lib="esnext" />
20
- /// <reference lib="dom" />
21
- /// <reference lib="webworker.importscripts" />
22
- /// <reference lib="scripthost" />
23
- /// <reference lib="dom.iterable" />
24
- /// <reference lib="dom.asynciterable" />
@@ -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
- declare namespace Intl {
20
- interface NumberRangeFormatPart extends NumberFormatPart {
21
- source: "startRange" | "endRange" | "shared";
22
- }
23
-
24
- interface NumberFormat {
25
- formatRange(start: number | bigint, end: number | bigint): string;
26
- formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
27
- }
28
- }
@@ -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
- interface ObjectConstructor {
20
- /**
21
- * Groups members of an iterable according to the return value of the passed callback.
22
- * @param items An iterable.
23
- * @param keySelector A callback which will be invoked for each item in items.
24
- */
25
- groupBy<K extends PropertyKey, T>(
26
- items: Iterable<T>,
27
- keySelector: (item: T, index: number) => K,
28
- ): Partial<Record<K, T[]>>;
29
- }
@@ -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 PromiseWithResolvers<T> {
20
- promise: Promise<T>;
21
- resolve: (value: T | PromiseLike<T>) => void;
22
- reject: (reason?: any) => void;
23
- }
24
-
25
- interface PromiseConstructor {
26
- /**
27
- * Creates a new Promise and returns it in an object, along with its resolve and reject functions.
28
- * @returns An object with the properties `promise`, `resolve`, and `reject`.
29
- *
30
- * ```ts
31
- * const { promise, resolve, reject } = Promise.withResolvers<T>();
32
- * ```
33
- */
34
- withResolvers<T>(): PromiseWithResolvers<T>;
35
- }