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

Function isCustom

packages/effect/src/unstable/sql/Statement.ts:123–126  ·  view source on GitHub ↗
(
  kind: A["kind"]
)

Source from the content-addressed store, hash-verified

121 * @since 4.0.0
122 */
123export const isCustom = <A extends Custom<any, any, any, any>>(
124 kind: A["kind"]
125) =>
126(u: unknown): u is A => hasProperty(u, "_tag") && u._tag === "Custom" && (u as any).kind === kind
127
128/**
129 * Union of low-level segment types that make up a SQL `Fragment`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected