Skip to content
HomePagesHomePages template kit

formatVariantNameError

Why `id` cannot be a format-variant name, or `null` when it can.

Why id cannot be a format-variant name, or null when it can. One judgment shared by the manifest parse (which refuses the template) and {@link compileFormatVariantsToCss} (which refuses to emit).

Import from @homepages/template-kit.

function formatVariantNameError(id: string): string | null
Name Type Required Description
id string required

string | null