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

Method constructor

packages/effect/test/schema/toCodec.test.ts:94–98  ·  view source on GitHub ↗
(message?: string)

Source from the content-addressed store, hash-verified

92 it("arg: message: string", async () => {
93 class MyError extends Error {
94 constructor(message?: string) {
95 super(message)
96 this.name = "MyError"
97 Object.setPrototypeOf(this, MyError.prototype)
98 }
99 }
100
101 const schema = Schema.instanceOf(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected