Skip to content

Commit

Permalink
make type
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Dec 18, 2024
1 parent b1ed0b9 commit 0652c07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
17 changes: 9 additions & 8 deletions protocol-designer/src/ui/steps/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ import type { AnalyticsEventAction } from '../../../analytics/actions'
import type { TerminalItemId, SubstepIdentifier } from '../../../steplist/types'
import type {
AddStepAction,
ClearWellSelectionLabwareKeyAction,
HoverOnStepAction,
HoverOnSubstepAction,
SelectTerminalItemAction,
HoverOnTerminalItemAction,
SetWellSelectionLabwareKeyAction,
ClearWellSelectionLabwareKeyAction,
SelectStepAction,
hoverSelectionAction,
Mode,
selectDropdownItemAction,
Selection,
SelectMultipleStepsAction,
SelectMultipleStepsForGroupAction,
SelectStepAction,
SelectTerminalItemAction,
SetWellSelectionLabwareKeyAction,
ToggleViewSubstepAction,
ViewSubstep,
hoverSelectionAction,
selectDropdownItemAction,
Selection,
} from './types'

// adds an incremental integer ID for Step reducers.
Expand All @@ -57,7 +58,7 @@ export const hoverSelection = (args: Selection): hoverSelectionAction => ({
})
export const selectDropdownItem = (args: {
selection: Selection | null
mode: 'add' | 'clear'
mode: Mode
}): selectDropdownItemAction => ({
type: 'SELECT_DROPDOWN_ITEM',
payload: {
Expand Down
1 change: 1 addition & 0 deletions protocol-designer/src/ui/steps/actions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface DuplicateMultipleStepsAction {
}
}

export type Mode = 'clear' | 'add'
export interface Selection {
id: string | null
text: string | null
Expand Down

0 comments on commit 0652c07

Please sign in to comment.