Skip to content

Commit 17df800

Browse files
Renegade334targos
authored andcommitted
typings: add Atomics primordials
PR-URL: #58577 Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Jacob Smith <jacob@frende.me>
1 parent c39d570 commit 17df800

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎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
exportimportdecodeURIComponent=globalThis.decodeURIComponent;
4747
exportimportencodeURI=globalThis.encodeURI;
4848
exportimportencodeURIComponent=globalThis.encodeURIComponent;
49+
exportconstAtomicsAdd: typeofAtomics.add
50+
exportconstAtomicsAnd: typeofAtomics.and
51+
exportconstAtomicsCompareExchange: typeofAtomics.compareExchange
52+
exportconstAtomicsExchange: typeofAtomics.exchange
53+
exportconstAtomicsIsLockFree: typeofAtomics.isLockFree
54+
exportconstAtomicsLoad: typeofAtomics.load
55+
exportconstAtomicsNotify: typeofAtomics.notify
56+
exportconstAtomicsOr: typeofAtomics.or
57+
exportconstAtomicsStore: typeofAtomics.store
58+
exportconstAtomicsSub: typeofAtomics.sub
59+
exportconstAtomicsWait: typeofAtomics.wait
60+
exportconstAtomicsWaitAsync: typeofAtomics.waitAsync
61+
exportconstAtomicsXor: typeofAtomics.xor
4962
exportconstJSONParse: typeofJSON.parse
5063
exportconstJSONStringify: typeofJSON.stringify
5164
exportconstMathAbs: typeofMath.abs

0 commit comments

Comments
 (0)