| 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, |