API REFERENCE
DrawingAction
The DrawingAction type declaration and related types. Optional fields are marked with ?.
Type declaration
export type DrawingAction =
| { type: 'add'; drawing: StockDrawingInput }
| { type: 'update'; id: string; patch: Partial<Omit<StockDrawing, 'id'>> }
| { type: 'move'; id: string; deltaTime: number; deltaPrice: number }
| { type: 'remove'; id: string }
| { type: 'clear' }
| { type: 'set'; drawings: ReadonlyArray<StockDrawingInput> };