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

Function isRawTuple

packages/effect/src/ui/Query.ts:4347–4350  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

4345 : Effect.failCause(result.cause)
4346
4347const isRawTuple = (u: unknown): u is RawTuple =>
4348 Array.isArray(u) && u.length === 4 && typeof u[0] === "string" &&
4349 typeof u[3] === "number" &&
4350 (u[1] === 0 || (u[1] === 1 && Array.isArray(u[2])))
4351
4352/** The `~query` payload by query name and args key, or `undefined` when it isn't the tuple shape. */
4353const parseRaw = (

Callers 1

parseRawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected