Skip to content
HomePagesHomePages template kit

defaultForSlotType

The fresh default runtime value for a slot of the given type, derived from `SLOT_TYPE_DESCRIPTORS`.

The fresh default runtime value for a slot of the given type, derived from SLOT_TYPE_DESCRIPTORS. Returns a NEW value on every call — never a shared reference — and null for a type absent from the catalog.

Import from @homepages/template-kit.

function defaultForSlotType(type: string): unknown
Name Type Required Description
type string required

unknown