We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8fa52f commit 05466f9Copy full SHA for 05466f9
1 file changed
router/errors.ts
@@ -33,18 +33,15 @@ export const CANCEL_CODE = 'CANCEL';
33
34
type TLiteralString = TLiteral<string>;
35
36
-/**
37
- * String literals or string enums for error codes.
38
- */
39
-type TStringCode = TLiteralString | TEnum<Record<string, string>>;
+type TEnumString = TEnum<Record<string, string>>;
40
41
export type BaseErrorSchemaType =
42
| TObject<{
43
- code: TStringCode;
+ code: TLiteralString | TEnumString;
44
message: TLiteralString | TString;
45
}>
46
47
48
49
extras: TSchema;
50
}>;
0 commit comments