@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
13 lines (9 loc) • 386 B
text/typescript
// ets_tracing: off
import * as ST from "../../Structural/index.js"
import type { AssertionValue } from "./AssertionValue.js"
export function sameAssertion_(self: AssertionValue, that: AssertionValue): boolean {
return ST.equals(self.assertion, that.assertion)
}
export function sameAssertion(that: AssertionValue) {
return (self: AssertionValue) => sameAssertion_(self, that)
}