Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Improve types

Jakub Novak42d57f7407b8
diff --git a/packages/js-sdk/src/sandbox/filesystem/index.ts b/packages/js-sdk/src/sandbox/filesystem/index.ts
index db3758378..eda9e9d7f 100644
--- a/packages/js-sdk/src/sandbox/filesystem/index.ts
+++ b/packages/js-sdk/src/sandbox/filesystem/index.ts
@@ -126,11 +126,7 @@ export class Filesystem {
throw new Error('Expected to receive information about written file')
}
- return {
- name: files[0].name,
- type: FileType.FILE,
- path: files[0].path,
- }
+ return files[0] as EntryInfo
}
async list(path: string, opts?: FilesystemRequestOpts): Promise<EntryInfo[]> {