Skip to content

index.d.ts: syntax error in i64.atomic.load8_u signature (missing )) #125

@nerdalytics

Description

@nerdalytics

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions