MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isUnknown

Function isUnknown

packages/core/sdk/src/shape-inference.ts:45–46  ·  view source on GitHub ↗
(shape: InferredShape)

Source from the content-addressed store, hash-verified

43const MAX_ANYOF = 4;
44
45const isUnknown = (shape: InferredShape): boolean =>
46 shape.type === undefined && shape.anyOf === undefined;
47
48/** Infer the shape of one observed value. Reads structure only, never values. */
49export const inferShape = (value: unknown, depth = 0): InferredShape => {

Callers 2

mergeShapesFunction · 0.85
addUnionBranchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected