Skip to content

Commit 17df800

Browse files
Renegade334targos
authored andcommitted
typings: add Atomics primordials
PR-URL: #58577 Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Jason Zhang <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
1 parent c39d570 commit 17df800

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

typings/primordials.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ declare namespace primordials {
4646
export import decodeURIComponent = globalThis.decodeURIComponent;
4747
export import encodeURI = globalThis.encodeURI;
4848
export import encodeURIComponent = globalThis.encodeURIComponent;
49+
export const AtomicsAdd: typeof Atomics.add
50+
export const AtomicsAnd: typeof Atomics.and
51+
export const AtomicsCompareExchange: typeof Atomics.compareExchange
52+
export const AtomicsExchange: typeof Atomics.exchange
53+
export const AtomicsIsLockFree: typeof Atomics.isLockFree
54+
export const AtomicsLoad: typeof Atomics.load
55+
export const AtomicsNotify: typeof Atomics.notify
56+
export const AtomicsOr: typeof Atomics.or
57+
export const AtomicsStore: typeof Atomics.store
58+
export const AtomicsSub: typeof Atomics.sub
59+
export const AtomicsWait: typeof Atomics.wait
60+
export const AtomicsWaitAsync: typeof Atomics.waitAsync
61+
export const AtomicsXor: typeof Atomics.xor
4962
export const JSONParse: typeof JSON.parse
5063
export const JSONStringify: typeof JSON.stringify
5164
export const MathAbs: typeof Math.abs

0 commit comments

Comments
 (0)