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

Function isSnapshotOf

packages/effect/src/ui/Query.ts:3552–3554  ·  view source on GitHub ↗
(def: QueryDef, label: string)

Source from the content-addressed store, hash-verified

3550}
3551
3552const isSnapshotOf = (def: QueryDef, label: string) => (u: unknown): u is SnapshotImpl =>
3553 u instanceof SnapshotImpl && u[SnapshotTypeId].def.name === def.name &&
3554 u[SnapshotTypeId].label === label
3555
3556const snapshotIssue = (def: QueryDef, message: string) =>
3557 new SchemaIssue.InvalidValue({

Callers 1

snapshotRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected