// example usage
export class ApiError extends Schema.TaggedError<ApiError>()("ApiError", {
detail: Schema.String,
instance: Schema.String,
status: Schema.Number,
title: Schema.String,
}) {
static FromTagless = TaggedError.fromTagless<ApiError, "ApiError", typeof this.fields>()(this)
}
export const api = HttpApi.make("api").addError(ApiError.FromTagless)
// example usage
export class ApiError extends Schema.TaggedError<ApiError>()("ApiError", {
detail: Schema.String,
instance: Schema.String,
status: Schema.Number,
title: Schema.String,
}) {
static FromTagless = TaggedError.fromTagless<ApiError, "ApiError", typeof this.fields>()(this)
}
export const api = HttpApi.make("api").addError(ApiError.FromTagless)