Fix type error

This commit is contained in:
Louis Knight-Webb
2025-06-17 11:09:50 -04:00
parent ff1ee5e2d5
commit 7c5604a81b
2 changed files with 21 additions and 1 deletions

View File

@@ -73,6 +73,14 @@ export {}
export {}
export {}
export {}
export {}
export {}
export {}"#,
bloop_backend::models::ApiResponse::<()>::decl(),
bloop_backend::executor::ExecutorConfig::decl(),
@@ -96,6 +104,10 @@ export {}"#,
bloop_backend::models::user::UpdateUser::decl(),
bloop_backend::models::user::UserResponse::decl(),
bloop_backend::routes::filesystem::DirectoryEntry::decl(),
bloop_backend::models::task_attempt::DiffChunkType::decl(),
bloop_backend::models::task_attempt::DiffChunk::decl(),
bloop_backend::models::task_attempt::FileDiff::decl(),
bloop_backend::models::task_attempt::WorktreeDiff::decl(),
);
std::fs::write(shared_path.join("types.ts"), consolidated_content).unwrap();

View File

@@ -43,4 +43,12 @@ export type UpdateUser = { email: string | null, password: string | null, is_adm
export type User = { id: string, email: string, is_admin: boolean, created_at: Date, updated_at: Date, };
export type DirectoryEntry = { name: string, path: string, is_directory: boolean, is_git_repo: boolean, };
export type DirectoryEntry = { name: string, path: string, is_directory: boolean, is_git_repo: boolean, };
export type DiffChunkType = "Equal" | "Insert" | "Delete";
export type DiffChunk = { chunk_type: DiffChunkType, content: string, };
export type FileDiff = { path: string, chunks: Array<DiffChunk>, };
export type WorktreeDiff = { files: Array<FileDiff>, };