Type Alias: ExtractSlotDefinitions<Slots>
ts
type ExtractSlotDefinitions<Slots> = Slots extends {
slots: SlotsType<infer D>;
}
? D
: Slots extends SlotsType<infer D>
? D
: never;Extracts the slot definitions from a component with a slots property. Works with both components that have a slots property and direct SlotsType definitions.
Type Parameters
| Type Parameter | Description |
|---|---|
Slots | The slots object or SlotsType to extract definitions from |