Skip to main content

Interface: GenerateSite

Defined in: packages/vite/src/types.ts:231

A single <ZodForm> JSX element matched by generate mode. Lives only during a single transform call — not persisted.

Properties

exportName

exportName: string

Defined in: packages/vite/src/types.ts:242

Export name of the identifier in the schema module.


generatedIdentifier

generatedIdentifier: string

Defined in: packages/vite/src/types.ts:248

Local identifier that replaces ZodForm at this call site. Unique within the source file.


range

range: object

Defined in: packages/vite/src/types.ts:236

Byte range of the original <ZodForm> element in the source file.

end

end: number

start

start: number


schemaFile

schemaFile: string

Defined in: packages/vite/src/types.ts:239

Absolute path to the schema file the schema={X} identifier resolves to.


sourceFile

sourceFile: string

Defined in: packages/vite/src/types.ts:233

Absolute path to the source file containing the matched <ZodForm> site.


variant

variant: string

Defined in: packages/vite/src/types.ts:254

Synthesized variant name for cache keying. Always __generate_<n> where <n> is a per-source-file counter.