This directory contains TypeScript examples referenced in the documentation. Examples are built against the current TypeScript build output or the published package schema-dsl.
examples/docs/*.ts: Documentation example entry points. Most files map todocs/*.md; a few standalone scenario examples, such asobject-dsl-builder.tsandreal-world.ts, exercise public APIs that are referenced across multiple docs.custom-extensions-guide.tsis kept as an advanced compatibility scenario; the current primary custom-extension companion example iscustom-extensions.ts.
Documentation examples are part of the public contract. When a document changes, its matching example must be updated in the same change unless the report explicitly records why no code sample is needed. Examples should show realistic success, failure, boundary, and output paths for the documented feature; a minimal smoke demo is not enough for long-form guides or API reference pages.
Type-check all examples:
npm run examples:typecheckBuild and run every documentation example:
npm run examples:runBuild and run a single example:
npm run examples:build
node .tmp/docs/quick-start.js