mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 01:12:15 +00:00
chore: generate
This commit is contained in:
parent
ed802fd121
commit
b0455583aa
1 changed files with 1 additions and 6 deletions
|
|
@ -32,12 +32,7 @@ export function namedSchemaError<Tag extends string, Fields extends Schema.Struc
|
|||
static readonly Schema = wire
|
||||
static readonly tag = tag
|
||||
public static isInstance(input: unknown): input is NamedSchemaError {
|
||||
return (
|
||||
typeof input === "object" &&
|
||||
input !== null &&
|
||||
"name" in input &&
|
||||
(input as { name: unknown }).name === tag
|
||||
)
|
||||
return typeof input === "object" && input !== null && "name" in input && (input as { name: unknown }).name === tag
|
||||
}
|
||||
|
||||
public override readonly name: Tag = tag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue