<script is:build> blocks, content config files, and shared type modules. The VS Code extension provides IntelliSense and diagnostics automatically. You can type component props, validate content schemas, and run aero check --types in CI.
Ambient types
Aero ships ambient declarations that makeAero, renderComponent, and *.html imports available to TypeScript. Include them in your tsconfig.json:
tsconfig.json
For
.html build scripts, the VS Code extension injects these declarations automatically.
You only need the above for .ts files outside of templates.Typing component props
Aero.props is typed as Record<string, any> by default. Add type safety with an interface:
client/components/greeting.html
.ts file and import:
client/types/props.ts
client/components/header.html
Typing content collections
Use a schema validator incontent.config.ts to type collection entries:
content.config.ts
Typing import.meta.env
Create anenv.d.ts to add types for environment variables:
env.d.ts
CI type-checking
Run type checks in CI without an IDE:{ } interpolation sites. See CLI for flags and exit codes.