mirror of
https://github.com/harivansh-afk/asap.it.git
synced 2026-04-15 18:01:25 +00:00
22 lines
444 B
TypeScript
22 lines
444 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 interface StartAction extends BaseAction {
|
|
type: 'start';
|
|
}
|
|
|
|
export type BoltAction = FileAction | ShellAction | StartAction;
|
|
|
|
export type BoltActionData = BoltAction | BaseAction;
|