index.d.ts line 1334 is missing a closing parenthesis in the i64.atomic.load8_u signature, so the file fails to parse as TypeScript.
Current:
load8_u(offset: number, ptr: ExpressionRef, name?: string, order?: MemoryOrder: ExpressionRef;
Fixed:
load8_u(offset: number, ptr: ExpressionRef, name?: string, order?: MemoryOrder): ExpressionRef;
Because this is a syntax error rather than a type error, skipLibCheck: true does not suppress it. Any project running tsc against code that imports binaryen fails with TS1005: ',' expected.
Scope:
- Present on
main (most recent commit touching this file)
- Present in nightly npm publishes
129.0.0-nightly.20260414 through 129.0.0-nightly.20260419
- Not present on stable
129.0.0. The i64.atomic block was added after that release.
Happy to open a PR with the one-character fix.
index.d.tsline 1334 is missing a closing parenthesis in thei64.atomic.load8_usignature, so the file fails to parse as TypeScript.Current:
Fixed:
Because this is a syntax error rather than a type error,
skipLibCheck: truedoes not suppress it. Any project runningtscagainst code that importsbinaryenfails withTS1005: ',' expected.Scope:
main(most recent commit touching this file)129.0.0-nightly.20260414through129.0.0-nightly.20260419129.0.0. Thei64.atomicblock was added after that release.Happy to open a PR with the one-character fix.