MCPcopy Create free account
hub / github.com/arktypeio/arktype / openLeftBoundToRoot

Function openLeftBoundToRoot

ark/type/parser/shift/operator/bounds.ts:157–165  ·  view source on GitHub ↗
(
	lBound: OpenLeftBound
)

Source from the content-addressed store, hash-verified

155}
156
157const openLeftBoundToRoot = (
158 lBound: OpenLeftBound
159): Constraint.Schema<BoundKind> => ({
160 rule:
161 isDateLiteral(lBound.limit) ?
162 extractDateLiteralSource(lBound.limit)
163 : lBound.limit,
164 exclusive: lBound.comparator.length === 1
165})
166
167export const parseRightBound = (
168 s: RootedRuntimeState,

Callers 1

parseRightBoundFunction · 0.85

Calls 2

isDateLiteralFunction · 0.90
extractDateLiteralSourceFunction · 0.90

Tested by

no test coverage detected