Skip to content

Commit e59087a

Browse files
committed
chore: export flatten
1 parent f0aacb7 commit e59087a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function isUnion(schema: TSchema): schema is TUnion {
139139
return schema[Kind] === 'Union';
140140
}
141141

142-
type Flatten<T> = T extends BaseErrorSchemaType
142+
export type Flatten<T> = T extends BaseErrorSchemaType
143143
? T
144144
: T extends TUnion<Array<infer U extends TSchema>>
145145
? Flatten<U>

0 commit comments

Comments
 (0)