UNPKG

the-moby-effect

Version:
20 lines (17 loc) 585 B
import * as Schema from "effect/Schema"; import * as MobyNumber from "../schemas/number.ts"; export class JsonmessageJSONError extends Schema.Class<JsonmessageJSONError>("JsonmessageJSONError")( { code: Schema.optional( MobyNumber.BigIntFromWireString.check( Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n }) ) ), message: Schema.optional(Schema.String), }, { identifier: "JsonmessageJSONError", title: "jsonmessage.JSONError", documentation: "", } ) {}