summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.es2022.sharedmemory.d.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-21 11:46:40 -0400
committerGitHub <noreply@github.com>2023-03-21 15:46:40 +0000
commit2fcf1f14cf29bb68995f652f93a4f6e3cb55c8d7 (patch)
tree04fb972934969cb01a52f3b9b8af0a17134ef5b6 /cli/tsc/dts/lib.es2022.sharedmemory.d.ts
parent0366d6833f25b786e897ce0d6393f692507f0532 (diff)
feat: TypeScript 5.0.2 (except decorators) (#18294)
This upgrades TypeScript to 5.0.2, but does not have ES decorator support because swc does not support that yet.
Diffstat (limited to 'cli/tsc/dts/lib.es2022.sharedmemory.d.ts')
-rw-r--r--cli/tsc/dts/lib.es2022.sharedmemory.d.ts18
1 files changed, 15 insertions, 3 deletions
diff --git a/cli/tsc/dts/lib.es2022.sharedmemory.d.ts b/cli/tsc/dts/lib.es2022.sharedmemory.d.ts
index 43b9b88dc..5126a4b58 100644
--- a/cli/tsc/dts/lib.es2022.sharedmemory.d.ts
+++ b/cli/tsc/dts/lib.es2022.sharedmemory.d.ts
@@ -14,14 +14,26 @@ and limitations under the License.
***************************************************************************** */
-
/// <reference no-default-lib="true"/>
-
interface Atomics {
/**
* A non-blocking, asynchronous version of wait which is usable on the main thread.
* Waits asynchronously on a shared memory location and returns a Promise
+ * @param typedArray A shared Int32Array or BigInt64Array.
+ * @param index The position in the typedArray to wait on.
+ * @param value The expected value to test.
+ * @param [timeout] The expected value to test.
+ */
+ waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
+
+ /**
+ * A non-blocking, asynchronous version of wait which is usable on the main thread.
+ * Waits asynchronously on a shared memory location and returns a Promise
+ * @param typedArray A shared Int32Array or BigInt64Array.
+ * @param index The position in the typedArray to wait on.
+ * @param value The expected value to test.
+ * @param [timeout] The expected value to test.
*/
- waitAsync(typedArray: BigInt64Array | Int32Array, index: number, value: bigint, timeout?: number): { async: false, value: "ok" | "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "not-equal" | "timed-out"> };
+ waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
}