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

Class PrintableBox

packages/effect/test/Effectable.test.ts:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49 it("shadows base prototype methods without modifying them", () => {
50 class PrintableBox extends Box {
51 override toString() {
52 return "Box"
53 }
54 toJSON(): unknown {
55 return { _id: "Box" }
56 }
57 }
58 class PrintableEffectBox extends Effectable.Mixin(PrintableBox) {
59 override asEffect() {
60 return Effect.succeed(this.value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected