> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# output.enableCssModuleTSDeclaration

- **Type:** `boolean`
- **Default:** `false`

Whether to generate a TypeScript declaration file for CSS modules.

### Example

Enable CSS module TypeScript declaration:

```js
export default {
  output: {
    enableCssModuleTSDeclaration: true,
  },
};
```

After building, there will be a `.d.ts` file for each CSS module file. For example

```ts
interface CssExports {
  title: string;
}
export const cssExports: CssExports;
export default cssExports;
```
