Skip to main content

FileOptions

Options for generated files.

Properties

PropertyTypeDefault valueDescription

addHeader?

(name, content, tag) => string

undefined

Add custom header at the beginning of the file.

disableBiomeHeader?

boolean

false;

Disable biome comment at the beginning of the file.

disableEslintHeader?

boolean

false;

Disable eslint-disable comment at the beginning of the file.

disableGenerationNoticeHeader?

boolean

false;

Disable generation notice at the beginning of the file.

transformContent?

(name, content, tag) => string | Promise<string>

undefined

Edit the content of the file before writing it.