Skip to content

Commit 9e96e01

Browse files
committed
refactor(shared-data): make wellLocation on MoveToWellParams required
Looks like this is always provided in the engine, so we should probably update shared data
1 parent e7bc194 commit 9e96e01

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

shared-data/command/types/gantry.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type { CommonCommandRunTimeInfo, CommonCommandCreateInfo } from '.'
1+
import type { CommonCommandCreateInfo, CommonCommandRunTimeInfo } from '.'
22
import type { AddressableAreaName } from '../../deck'
3-
import type { WellLocation } from './support'
43
import type {
54
Coordinates,
5+
GantryMount,
66
MotorAxes,
77
MotorAxis,
8-
GantryMount,
98
} from '../../js/types'
9+
import type { WellLocation } from './support'
1010

1111
export interface MoveToSlotCreateCommand extends CommonCommandCreateInfo {
1212
commandType: 'moveToSlot'
@@ -126,7 +126,7 @@ export interface MoveToWellParams {
126126
pipetteId: string
127127
labwareId: string
128128
wellName: string
129-
wellLocation?: WellLocation
129+
wellLocation: WellLocation
130130
minimumZHeight?: number
131131
forceDirect?: boolean
132132
}

shared-data/command/types/support.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
type BaseWellOrigin = 'top' | 'bottom' | 'center'
22
export type WellOrigin = BaseWellOrigin | 'meniscus'
33
export interface WellOffset {
4-
x?: number
5-
y?: number
6-
z?: number
4+
x: number
5+
y: number
6+
z: number
77
}
88
export interface WellLocation {
9-
origin?: WellOrigin
10-
offset?: WellOffset
9+
origin: WellOrigin
10+
offset: WellOffset
1111
}
1212

1313
export type DropTipWellOrigin = BaseWellOrigin | 'default'

0 commit comments

Comments
 (0)