MCPcopy Create free account
hub / github.com/codemix/graph / isTemporalValue

Function isTemporalValue

packages/graph/src/TemporalTypes.ts:23–30  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

21 * Check if a value is a temporal value.
22 */
23export function isTemporalValue(value: unknown): value is TemporalValue {
24 return (
25 typeof value === "object" &&
26 value !== null &&
27 "temporalType" in value &&
28 typeof (value as TemporalValue).get === "function"
29 );
30}
31
32/**
33 * DateValue - Represents a Cypher date value (year, month, day).

Callers 2

resolveConditionValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected