mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
fix: remove monorepo
This commit is contained in:
18
app/types/actions.ts
Normal file
18
app/types/actions.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
4
app/types/artifact.ts
Normal file
4
app/types/artifact.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface BoltArtifactData {
|
||||
id: string;
|
||||
title: string;
|
||||
}
|
||||
8
app/types/terminal.ts
Normal file
8
app/types/terminal.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export interface ITerminal {
|
||||
readonly cols?: number;
|
||||
readonly rows?: number;
|
||||
|
||||
reset: () => void;
|
||||
write: (data: string) => void;
|
||||
onData: (cb: (data: string) => void) => void;
|
||||
}
|
||||
1
app/types/theme.ts
Normal file
1
app/types/theme.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type Theme = 'dark' | 'light';
|
||||
Reference in New Issue
Block a user