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

Class MyError

packages/effect/test/schema/toCodec.test.ts:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 describe("instanceOf with annotation", () => {
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(
102 MyError,

Callers

nothing calls this directly

Calls 2

transformMethod · 0.65
StringInterface · 0.50

Tested by

no test coverage detected