The Node snippets, type-checked

The verbatim @zerodds/node code blocks from this website, kept as a tsc --noEmit fixture so they stay type-correct against the real binding.

What it shows

  • hello.ts — the bytes pub/sub quickstart.
  • async.ts — the writeAsync/takeAsync/streamSamples block.
  • typed.ts plus gen/temperature.ts — the typed-topic block over the generated Temperature TypeSupport.
  • A pure type-check fixture: no runtime and no package.json.

Build and check

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

npx tsc --noEmit -p tsconfig.json   # checks hello.ts, async.ts, typed.ts

See also

Die Node-Snippets, typgeprüft

Die wörtlichen @zerodds/node-Codeblöcke dieser Website, als tsc --noEmit-Fixture gehalten, damit sie gegen das echte Binding typkorrekt bleiben.

Was es zeigt

  • hello.ts — der Bytes-Pub/Sub-Quickstart.
  • async.ts — der Block mit writeAsync/takeAsync/streamSamples.
  • typed.ts plus gen/temperature.ts — der Typed-Topic-Block über dem generierten Temperature-TypeSupport.
  • Eine reine Typprüf-Fixture: keine Laufzeit und keine package.json.

Bauen und prüfen

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

npx tsc --noEmit -p tsconfig.json   # prüft hello.ts, async.ts, typed.ts

Verwandt