Skip to main content

Type Alias: ChecklistItem<I, T>

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

Defined in: src/sdk/checklist/ChecklistState.ts:102

A utility type that returns a union type of checklist items 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).