The WASM snippet, type-checked

The verbatim @zerodds/wasm browser quickstart block from this website, kept as a tsc --noEmit fixture.

What it shows

  • app.ts shows the await init() WASM bootstrap, createParticipantWebSocket('ws://localhost:9001', 0) and a Chatter bytes pub/sub roundtrip.
  • A pure type-check fixture: no runtime and no package.json.

Build and check

cd crates/ts-wasm && npm install && npm run build

npx tsc --noEmit -p tsconfig.json   # checks app.ts

See also

Das WASM-Snippet, typgeprüft

Der wörtliche @zerodds/wasm-Browser-Quickstart-Block dieser Website, als tsc --noEmit-Fixture gehalten.

Was es zeigt

  • app.ts zeigt den WASM-Bootstrap mit await init(), createParticipantWebSocket('ws://localhost:9001', 0) und einen Chatter-Bytes-Pub/Sub-Roundtrip.
  • Eine reine Typprüf-Fixture: keine Laufzeit und keine package.json.

Bauen und prüfen

cd crates/ts-wasm && npm install && npm run build

npx tsc --noEmit -p tsconfig.json   # prüft app.ts

Verwandt