Getting Started
TypeScript Setup
Configure tsconfig, type imports, and inference tips.
Basic Configuration
Scrivr targets ES2020 and ships ESM-only packages. Ensure your tsconfig.json is
compatible:
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"jsx": "react-jsx"
}
}moduleResolution: "Bundler" (or "Node16" / "NodeNext") is required. The older "Node" resolution mode does not support the package exports field used by all Scrivr packages.
Type Definitions
Because Scrivr is written in strict TypeScript, you do not need to install separate @types/*
packages — type declarations are bundled directly with each package.