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.
Signature
Section titled “Signature”function defaultForSlotType(type: string): unknownParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
type |
string |
required |
Returns
Section titled “Returns”unknown