chore: generate
This commit is contained in:
@@ -32,12 +32,7 @@ export function namedSchemaError<Tag extends string, Fields extends Schema.Struc
|
|||||||
static readonly Schema = wire
|
static readonly Schema = wire
|
||||||
static readonly tag = tag
|
static readonly tag = tag
|
||||||
public static isInstance(input: unknown): input is NamedSchemaError {
|
public static isInstance(input: unknown): input is NamedSchemaError {
|
||||||
return (
|
return typeof input === "object" && input !== null && "name" in input && (input as { name: unknown }).name === tag
|
||||||
typeof input === "object" &&
|
|
||||||
input !== null &&
|
|
||||||
"name" in input &&
|
|
||||||
(input as { name: unknown }).name === tag
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override readonly name: Tag = tag
|
public override readonly name: Tag = tag
|
||||||
|
|||||||
Reference in New Issue
Block a user