import type { CommandCreatorArgs } from '../types' ; /** If command creator is of a type that uses a pipette, get the pipetteId */ export const getPipetteIdFromCCArgs = ( args ) : string | null => args . commandCreatorFnName !== 'delay' && args . commandCreatorFnName !== 'engageMagnet' && args . commandCreatorFnName !== 'disengageMagnet' && args . commandCreatorFnName !== 'setTemperature' && args . commandCreatorFnName !== 'deactivateTemperature' && 'pipette' in args ? args . pipette : null ; /** If command creator is of a type that doesn't ever have wells, return true */ export const getHasNoWellsFromCCArgs = ( stepArgs ) : boolean => stepArgs . commandCreatorFnName === 'delay' || stepArgs . commandCreatorFnName === 'engageMagnet' || stepArgs . commandCreatorFnName === 'disengageMagnet' || stepArgs . commandCreatorFnName === 'setTemperature' || stepArgs . commandCreatorFnName === 'deactivateTemperature' ;