The Node snippets, type-checked
The verbatim
@zerodds/nodecode blocks from this website, kept as atsc --noEmitfixture so they stay type-correct against the real binding.
- Example:
typescript-node-website-snippet - Repository: zero-dds-snippets
What it shows
hello.ts— the bytes pub/sub quickstart.async.ts— thewriteAsync/takeAsync/streamSamplesblock.typed.tsplusgen/temperature.ts— the typed-topic block over the generatedTemperatureTypeSupport.- 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, alstsc --noEmit-Fixture gehalten, damit sie gegen das echte Binding typkorrekt bleiben.
- Beispiel:
typescript-node-website-snippet - Repository: zero-dds-snippets
Was es zeigt
hello.ts— der Bytes-Pub/Sub-Quickstart.async.ts— der Block mitwriteAsync/takeAsync/streamSamples.typed.tsplusgen/temperature.ts— der Typed-Topic-Block über dem generiertenTemperature-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