MCPcopy Create free account
hub / github.com/Effect-TS/effect / isSegment

Function isSegment

packages/effect/src/sql/Statement.ts:1743–1743  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

1741}
1742
1743const isSegment = (u: unknown): u is Segment => hasProperty(u, SegmentTypeId)
1744
1745function convertLiteralOrFragment(clause: string | Fragment): Array<Segment> {
1746 if (typeof clause === "string") {

Callers 2

isCustomFunction · 0.85
templateSegmentsFunction · 0.85

Calls 1

hasPropertyFunction · 0.90

Tested by

no test coverage detected