TSConfig
Best Practices
Follow TSConfig best practices for Nova with small preset chains, explicit wiring, and stable compiler behavior for Node and bundlers.
TypeScript Compatibility
Use Nova with its supported TypeScript 6 compiler line, exact project pins, and migration-safe TSConfig settings.
DX - Essentials
Set the baseline TypeScript compiler options for Nova projects with Node ESM resolution, declaration output, and source maps.
DX - Strict
Layer strict TypeScript checks over the essentials baseline with full strict mode, unused-code detection, and exhaustive null safety.
Framework - Astro
Configure the Astro framework layer for TypeScript with bundler resolution, DOM libraries, and preserved JSX for .astro components.
Framework - Docusaurus
Configure TypeScript for Docusaurus sites with bundler resolution, DOM libs, preserved JSX, and no TypeScript emit for static builds.
Framework - Express.js
Configure TypeScript for Express.js servers with Node ESM module resolution, the latest ECMAScript library, and declaration output.
Framework - Homebridge
Configure TypeScript for Homebridge plugins with DOM APIs and compiler settings that remain compatible with Homebridge's ambient HAP const enums.
Framework - Next.js
Configure TypeScript for Next.js apps with bundler resolution, DOM libs, isolated modules, and no TypeScript emit so Next.js owns the build.
Runtime - Browser
Add browser DOM type definitions and bundler module resolution to a Nova TSConfig chain for code that ships to the browser.
Runtime - Cloudflare Workers
Configure TypeScript for Cloudflare Workers with bundler resolution, per-file isolation, and no compiler emit so Wrangler owns the build.
Runtime - Edge
Add DOM-compatible type definitions and bundler module resolution to a Nova TSConfig chain for code that runs on edge runtimes.
Runtime - Node
Add Node ESM module resolution and the ESNext lib to a Nova TSConfig chain for server-side code that runs on the Node.js runtime.
Runtime - Service Worker
Configure TypeScript for service workers with WebWorker libraries, ESNext modules, and bundler resolution for browser background scripts.
Runtime - Web Worker
Configure TypeScript for web workers with WebWorker libraries, ESNext modules, automatic module detection, and bundler resolution.
Tool - Vite
Configure TypeScript for Vite projects with bundler module resolution, isolated modules, browser libs, and no TypeScript emit.