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

Function sameMore

packages/effect/src/ui/Query.ts:4315–4322  ·  view source on GitHub ↗
(
  a: More<any> | undefined,
  b: More<any> | undefined
)

Source from the content-addressed store, hash-verified

4313
4314/** @internal */
4315export const sameMore = (
4316 a: More<any> | undefined,
4317 b: More<any> | undefined
4318): boolean =>
4319 a === b ||
4320 (a !== undefined && b !== undefined && a._tag === b._tag &&
4321 (a._tag !== "Failed" ||
4322 Equal.equals(a.error, (b as { readonly error: unknown }).error)))
4323
4324/** A cursor as the log shows it: encoded, or `undefined` when it doesn't encode. */
4325const logCursor = (list: ListDef, cursor: unknown): Schema.Json | undefined => {

Callers 2

[Equal.symbol]Method · 0.85
emitFunction · 0.85

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected