设计tracer
This commit is contained in:
@@ -12,11 +12,38 @@ export const ARRAY_TRACER_ACTIONS = [
|
||||
export type ArrayTracerAction = (typeof ARRAY_TRACER_ACTIONS)[number];
|
||||
|
||||
export const STACK_TRACER_ACTIONS = [
|
||||
//
|
||||
'define',
|
||||
'push',
|
||||
'pick',
|
||||
'drop',
|
||||
'patch',
|
||||
'reset',
|
||||
] as const;
|
||||
|
||||
export type StackTracerAction = (typeof STACK_TRACER_ACTIONS)[number];
|
||||
|
||||
export type TracerAction = ArrayTracerAction | StackTracerAction;
|
||||
export const QUEUE_TRACER_ACTIONS = [
|
||||
'define',
|
||||
'pick',
|
||||
'drop',
|
||||
'patch',
|
||||
'reset',
|
||||
] as const;
|
||||
|
||||
export type QueueTracerAction = (typeof QUEUE_TRACER_ACTIONS)[number];
|
||||
|
||||
export const MATRIX_TRACER_ACTIONS = [
|
||||
'define',
|
||||
'preset',
|
||||
'pick',
|
||||
'drop',
|
||||
'patch',
|
||||
'reset',
|
||||
] as const;
|
||||
|
||||
export type MatrixTracerAction = (typeof MATRIX_TRACER_ACTIONS)[number];
|
||||
|
||||
export type TracerAction =
|
||||
| ArrayTracerAction
|
||||
| StackTracerAction
|
||||
| QueueTracerAction
|
||||
| MatrixTracerAction;
|
||||
|
||||
Reference in New Issue
Block a user