fix: build errors

This commit is contained in:
sriram veeraghanta
2024-12-18 14:57:59 +05:30
parent 5773c2bde3
commit 881c744eb9
3 changed files with 27 additions and 1 deletions

View File

@@ -1 +1,2 @@
export * from "./projects";
export * from "./project-activity";

View File

@@ -0,0 +1,25 @@
export interface TProjectActivity {
id: string;
content: string;
createdAt: string;
updatedAt: string;
userId: string;
projectId: string;
created_at: string;
field: string;
verb: string;
actor_detail: {
display_name: string;
id: string;
};
workspace_detail: {
slug: string;
};
project_detail: {
name: string;
};
new_value: string;
old_value: string;
project: string;
new_identifier?: string;
}

View File

@@ -174,7 +174,7 @@ export const clearOPFS = async (force = false) => {
return;
}
// ts-ignore
for await (const entry of root.values()) {
for await (const entry of (root as any)?.values()) {
if (entry.kind === "directory" && entry.name.startsWith(".ahp-")) {
// A lock with the same name as the directory protects it from
// being deleted.