Skip to main content

Type Alias: ChecklistItemDef<I, T>

ChecklistItemDef<I, T> = T extends ChecklistItemType ? I[T] : never

Defined in: src/sdk/checklist/ChecklistDefinitions.ts:87

A utility type that returns a union type of checklist item definitions for a given set of checklist item types.

Type Parameters

Type ParameterDefault typeDescription
I extends BaseChecklistItemTypeDefMapBaseChecklistItemTypeDefMapA map from checklist item types to checklist item definitions. Defaults to BaseChecklistItemTypeDefMap.
T extends ChecklistItemTypeChecklistItemTypeThe checklist item types to include in the returned union type. Defaults to ChecklistItemType (i.e. the union of all checklist item types).