mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 14:32:46 +00:00
19 lines
360 B
TypeScript
19 lines
360 B
TypeScript
export type ActionType = 'file' | 'shell';
|
|
|
|
export interface BaseAction {
|
|
content: string;
|
|
}
|
|
|
|
export interface FileAction extends BaseAction {
|
|
type: 'file';
|
|
filePath: string;
|
|
}
|
|
|
|
export interface ShellAction extends BaseAction {
|
|
type: 'shell';
|
|
}
|
|
|
|
export type BoltAction = FileAction | ShellAction;
|
|
|
|
export type BoltActionData = BoltAction | BaseAction;
|