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

Function requireBigInt

packages/sql/pg/src/PgTypes.ts:298–299  ·  view source on GitHub ↗
(value: unknown, name: string)

Source from the content-addressed store, hash-verified

296 typeof value === "string" ? value : fail(`Expected a string for ${name}`)
297
298const requireBigInt = (value: unknown, name: string): bigint =>
299 typeof value === "bigint" ? value : fail(`Expected a bigint for ${name}`)
300
301const requireNumber = (value: unknown, name: string): number =>
302 typeof value === "number" ? value : fail(`Expected a number for ${name}`)

Callers 2

requireInt64Function · 0.85
timeValueFunction · 0.85

Calls 1

failFunction · 0.70

Tested by

no test coverage detected