The WASM snippet, type-checked
The verbatim
@zerodds/wasmbrowser quickstart block from this website, kept as atsc --noEmitfixture.
- Example:
typescript-wasm-website-snippet - Repository: zero-dds-snippets
What it shows
app.tsshows theawait init()WASM bootstrap,createParticipantWebSocket('ws://localhost:9001', 0)and aChatterbytes 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, alstsc --noEmit-Fixture gehalten.
- Beispiel:
typescript-wasm-website-snippet - Repository: zero-dds-snippets
Was es zeigt
app.tszeigt den WASM-Bootstrap mitawait init(),createParticipantWebSocket('ws://localhost:9001', 0)und einenChatter-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