Skip to content

globalConfigToFieldTypeMap

globalConfigToFieldTypeMap(props): string

Defined in: packages/core/src/globals/interfaceGen.ts:56

Converts a resolved GlobalConfig to the TypeScript source string for its GlobalsFieldTypeMap entry in the declare module '@vexcms/core' block.

Powers GlobalRelationshipKeysOf<TGlobalSlug> for populate type narrowing.

GlobalConfig

The resolved global definition.

string

TypeScript source string for one GlobalsFieldTypeMap entry.