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

Method constructor

packages/effect/test/HashSet.test.ts:259–259  ·  view source on GitHub ↗
(readonly id: string, readonly name: string)

Source from the content-addressed store, hash-verified

257 describe("custom Equal objects", () => {
258 class Person implements Equal.Equal {
259 constructor(readonly id: string, readonly name: string) {}
260
261 [Equal.symbol](other: unknown): boolean {
262 return other instanceof Person && this.id === other.id

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected