MCPcopy Index your code
hub / github.com/TanStack/db / isConditionalSelectValue

Function isConditionalSelectValue

packages/db/src/query/compiler/select.ts:405–413  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

403}
404
405function isConditionalSelectValue(value: unknown): value is ConditionalSelect {
406 return (
407 value instanceof ConditionalSelect ||
408 (value != null &&
409 typeof value === `object` &&
410 (value as { type?: unknown }).type === `conditionalSelect` &&
411 Array.isArray((value as { branches?: unknown }).branches))
412 )
413}

Callers 2

compileSelectValueFunction · 0.85
addFromObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected