Skip to content

Commit 42f9552

Browse files
committed
fix: move platform type wrong place
1 parent 1da997f commit 42f9552

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/base-types/src/node/jump.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ export interface Command extends BaseCommand, Required<SlotMappings> {
2727
next: NodeID;
2828
intent: string;
2929
diagramID?: string;
30-
platform?: string;
3130
}

packages/base-types/src/node/push.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ export interface Command extends BaseCommand, Required<SlotMappings> {
2323
next?: NodeID;
2424
intent: string;
2525
diagram_id?: string;
26-
platform?: string;
2726
}

packages/base-types/src/node/stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface Node extends BaseNode {
4343
nextID?: NodeID;
4444
pauseID?: NodeID;
4545
previousID?: NodeID;
46+
platform?: string;
4647
}
4748

4849
export interface TraceFramePayload {
@@ -58,5 +59,4 @@ export interface TraceFramePayload {
5859

5960
export interface TraceFrame extends BaseTraceFrame<TraceFramePayload> {
6061
type: TraceType.STREAM;
61-
platform?: string;
6262
}

packages/base-types/src/node/utils/command.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ export interface JumpCommand<Event extends BaseEvent = BaseEvent> extends TypedB
1818
type: CommandType.JUMP;
1919
nextID: Nullable<string>;
2020
diagramID?: Nullable<string>;
21+
platform?: string;
2122
}
2223

2324
export interface PushCommand<Event extends BaseEvent = BaseEvent> extends TypedBaseCommand<Event> {
2425
type: CommandType.PUSH;
2526
diagramID: Nullable<string>;
27+
platform?: string;
2628
}
2729

2830
export type AnyCommand<Event extends BaseEvent = BaseEvent> = JumpCommand<Event> | PushCommand<Event>;

0 commit comments

Comments
 (0)