Skip to main content

Function: generateSchemaLiteFile()

generateSchemaLiteFile(schemaImportPath, exportName, info): string | null

Defined in: packages/codegen/src/schema-lite-codegen.ts:82

Generate the content of a .lite.ts file that constructs a lite schema from the imported schema's check objects at runtime.

Returns null if no schemaLite is needed (no top-level effects).

Parameters

schemaImportPath

string

exportName

string

info

SchemaLiteInfo

Returns

string | null