mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-04 03:35:36 +08:00
10 lines
352 B
TypeScript
10 lines
352 B
TypeScript
import * as Predicate from "effect/Predicate"
|
|
import * as Schema from "effect/Schema"
|
|
|
|
export class ApiDiffError extends Schema.TaggedError<ApiDiffError>()("ApiDiffError", {
|
|
message: Schema.String,
|
|
cause: Schema.optional(Schema.Defect())
|
|
}) {}
|
|
|
|
export const isApiDiffError = (u: unknown): u is ApiDiffError => Predicate.isTagged(u, "ApiDiffError")
|