mirror of
https://github.com/harivansh-afk/asap.it.git
synced 2026-04-18 19:03:43 +00:00
first commit
This commit is contained in:
commit
1cdbffff09
200 changed files with 30007 additions and 0 deletions
22
app/types/actions.ts
Normal file
22
app/types/actions.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue