bolt.diy/app/types/actions.ts

30 lines
563 B
TypeScript
Raw Normal View History

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';
}
2024-11-08 16:17:31 +00:00
export interface StartAction extends BaseAction {
type: 'start';
}
export type BoltAction = FileAction | ShellAction | StartAction;
export type BoltActionData = BoltAction | BaseAction;
export interface ActionAlert {
type: 'error' | 'info';
title: string;
description: string;
content: string;
}