Overview & Quick Start
TypeScript compiler standards
@nexload-sdk/typescript-config
v5.9.3 Stable ReleasedShared TypeScript configurations for the Nexload SDK monorepo
TypeScript 5+Node.jsBrowserNext.js
@nexload-sdk/typescript-config provides battle-tested, strict TypeScript configurations tailored for modern TypeScript 5.9+ runtimes and frameworks. It eliminates boilerplate and enforces strict type boundaries across libraries, microservices, and web applications.
10-Second Code Snippet
Section titled “10-Second Code Snippet”Extend the target preset directly in your project’s tsconfig.json:
{ "extends": "@nexload-sdk/typescript-config/node.json", "compilerOptions": { "outDir": "./dist", "rootDir": "./src" }, "include": ["src/**/*"]}Available Presets Catalog
Section titled “Available Presets Catalog”The package ships explicit subpath exports for each runtime archetype:
| Preset Subpath | Target Environment | Key Compiler Options |
|---|---|---|
@nexload-sdk/typescript-config/base.json | Universal base for all TypeScript projects | target: ES2022, moduleResolution: NodeNext, moduleDetection: force, strict: true |
@nexload-sdk/typescript-config/node.json | Node.js backend services and CLI tools | Extends base, lib: ["ES2023"], typed Node globals |
@nexload-sdk/typescript-config/react.json | Client React libraries and single-page apps | jsx: react-jsx, lib: ["DOM", "DOM.Iterable", "ES2023"] |
@nexload-sdk/typescript-config/next.json | Next.js App Router applications | jsx: preserve, plugins: [{ name: "next" }], isolated module safety |
@nexload-sdk/typescript-config/vite.json | Vite frontend applications | moduleResolution: Bundler, jsx: react-jsx, client DOM types |
Core Guarantees & Strictness Flags
Section titled “Core Guarantees & Strictness Flags”All presets inherit from base.json with maximum compiler safety enabled:
moduleDetection: "force": Treats every TypeScript file as a module automatically, preventing ambient global scope pollution without needing emptyexport {}statements.forceConsistentCasingInFileNames: true": Prevents subtle filesystem case-sensitivity crashes between macOS/Windows and Linux CI containers.noImplicitOverride: true: Guarantees that subclass method overrides are explicitly marked with theoverridekeyword.noImplicitReturns: true: Ensures all code paths within a function explicitly return a value.noFallthroughCasesInSwitch: true: Catches accidental switch fallthrough bugs during compilation.exactOptionalPropertyTypes: true: Distinguishes between omitted properties and properties explicitly assignedundefined.
Installation & Requirements
Section titled “Installation & Requirements”pnpm add -D @nexload-sdk/typescript-config typescript@^5.9.0Peer requirement: typescript >= 5.0.0.