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

Function assertRuntimeValue

packages/computer/src/runtime/capability.ts:256–258  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

254}
255
256export function assertRuntimeValue(value: unknown): asserts value is WorkspaceRuntimeValue {
257 assertValue(value, new WeakSet<object>());
258}
259
260function assertValue(value: unknown, seen: WeakSet<object>): void {
261 if (value === null || typeof value === "boolean" || typeof value === "string") return;

Callers 4

execMethod · 0.85
decodeEventFunction · 0.85
assertResultMethod · 0.85
capability.test.tsFile · 0.85

Calls 1

assertValueFunction · 0.85

Tested by

no test coverage detected