Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix possible type inconsistency

Tomas Valenta1c6c44c782e3
diff --git a/packages/js-sdk/src/sandbox/filesystem/index.ts b/packages/js-sdk/src/sandbox/filesystem/index.ts
index e2af154dd..cb9bdea1f 100644
--- a/packages/js-sdk/src/sandbox/filesystem/index.ts
+++ b/packages/js-sdk/src/sandbox/filesystem/index.ts
@@ -24,7 +24,7 @@ import { WatchHandle, FilesystemEvent } from './watchHandle'
export interface EntryInfo {
name: string
- type: FileType
+ type?: FileType
path: string
}
@@ -191,7 +191,7 @@ export class Filesystem {
return {
name: entry.name,
- type: mapFileType(entry.type)!,
+ type: mapFileType(entry.type),
path: entry.path,
}
} catch (err) {