Proposals and nightly builds
Concept and boundary
Proposal syntax and nightly compiler builds are experimental evidence, not compatibility guarantees. Pin a compiler version, isolate a feature probe and keep the stable baseline available. This fixture uses released 5.8.3; its unsupported option illustrates why experimental flags must be verified, not invented.
Accepted project
Create a fresh folder with exactly these files. Use TypeScript 5.8.3 and Node.js 22.16.0. For the AST explorer only, install the pinned typescript package locally (npm install --save-dev typescript@5.8.3).
tsconfig.json
{ "compilerOptions": { "strict": true, "target": "ES2022", "module": "CommonJS", "moduleResolution": "Node10", "moduleDetection": "force", "skipLibCheck": true, "noEmitOnError": true, "types": [] }, "include": [ "**/*" ], "exclude": [ "node_modules", "dist", "build", "cache" ]}From the project root run: tsc -p tsconfig.json --pretty false.
Compilation succeeds (exit 0).
Run node main.js. Expected stdout:
1Rejected project — diagnosis
Intentionally rejected variant. Do not execute it.
Use a fresh copy of the accepted project, changing only the files shown below.
tsconfig.json
{ "compilerOptions": { "strict": true, "target": "ES2022", "module": "CommonJS", "moduleResolution": "Node10", "moduleDetection": "force", "skipLibCheck": true, "noEmitOnError": true, "types": [], "exampleExperimentalFlag": true }, "include": [ "**/*" ], "exclude": [ "node_modules", "dist", "build", "cache" ]}From the project root run: tsc -p tsconfig.json --pretty false.
Expected compiler diagnostic: TS5023
No runtime execution is required for this check.
The intentionally fictional option is not recognized. Restore the accepted configuration/source to compare the result.
Practice and recap
Design a minimal probe and record exact nightly version only if one is approved and installed.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Proposals and nightly builds — knowledge check
Check the concept, interpret the tested project result, and diagnose a rejected configuration or source.
Which statement correctly describes Proposals and nightly builds?
Using the complete accepted project and the exact command in the lesson, which result is expected?
const x={id:1} satisfies {id:number}; console.log(x.id);Why does the rejected project fail under its stated configuration?
const x={id:1} satisfies {id:number}; console.log(x.id);