MCPcopy Create free account
hub / github.com/cloudflare/computer / isModuleBackend

Function isModuleBackend

packages/computer/src/runtime/types.ts:178–182  ·  view source on GitHub ↗
(
  backend: WorkspaceRegisteredBackend,
)

Source from the content-addressed store, hash-verified

176 | WorkspaceModuleBackend;
177
178export function isModuleBackend(
179 backend: WorkspaceRegisteredBackend,
180): backend is WorkspaceModuleBackend {
181 return "protocol" in backend && backend.protocol === "module";
182}

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected