We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0aacb7 commit e59087aCopy full SHA for e59087a
router/errors.ts
@@ -139,7 +139,7 @@ function isUnion(schema: TSchema): schema is TUnion {
139
return schema[Kind] === 'Union';
140
}
141
142
-type Flatten<T> = T extends BaseErrorSchemaType
+export type Flatten<T> = T extends BaseErrorSchemaType
143
? T
144
: T extends TUnion<Array<infer U extends TSchema>>
145
? Flatten<U>
0 commit comments