Skip to content

Commit a784553

Browse files
chore: formatted the code
1 parent 4e204e2 commit a784553

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/types.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export type ResolverReturnType = ReturnType<typeof resolver> & {
1818

1919
export type HandlerUniqueProperty =
2020
| (ResolverReturnType & {
21-
target: keyof ValidationTargets;
22-
})
21+
target: keyof ValidationTargets;
22+
})
2323
| {
24-
spec: DescribeRouteOptions;
25-
};
24+
spec: DescribeRouteOptions;
25+
};
2626

2727
export type GenerateSpecOptions = {
2828
/**
@@ -84,24 +84,24 @@ export type DescribeRouteOptions = Omit<
8484
* Pass `true` to hide route from OpenAPI/swagger document
8585
*/
8686
hide?:
87-
| boolean
88-
| ((props: { c?: Context; method: string; path: string }) => boolean);
87+
| boolean
88+
| ((props: { c?: Context; method: string; path: string }) => boolean);
8989
/**
9090
* Responses of the request
9191
*/
9292
responses?: {
9393
[key: string]:
94-
| (OpenAPIV3_1.ResponseObject & {
95-
content?: {
96-
[key: string]: Omit<OpenAPIV3_1.MediaTypeObject, "schema"> & {
97-
schema?:
98-
| OpenAPIV3_1.ReferenceObject
99-
| OpenAPIV3_1.SchemaObject
100-
| ResolverReturnType;
101-
};
102-
};
103-
})
104-
| OpenAPIV3_1.ReferenceObject;
94+
| (OpenAPIV3_1.ResponseObject & {
95+
content?: {
96+
[key: string]: Omit<OpenAPIV3_1.MediaTypeObject, "schema"> & {
97+
schema?:
98+
| OpenAPIV3_1.ReferenceObject
99+
| OpenAPIV3_1.SchemaObject
100+
| ResolverReturnType;
101+
};
102+
};
103+
})
104+
| OpenAPIV3_1.ReferenceObject;
105105
};
106106
};
107107

0 commit comments

Comments
 (0)