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

Function isQuery

packages/effect/src/ui/Query.ts:2835–2837  ·  view source on GitHub ↗
(u: T)

Source from the content-addressed store, hash-verified

2833export const defOf = (query: { readonly [TypeId]: unknown }): QueryDef => query[TypeId] as QueryDef
2834
2835const isQuery = <T>(u: T): u is Extract<T, { readonly [TypeId]: unknown }> =>
2836 (typeof u === "function" || (typeof u === "object" && u !== null)) &&
2837 TypeId in u
2838
2839// -----------------------------------------------------------------------------
2840// Targets, patches and writes

Callers 3

compileTargetsFunction · 0.70
registerTargetsFunction · 0.70
invalidateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected