File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ import {
1010} from './generate-schema'
1111import { wrapInterfaceKeyGuard } from './wrap-interface-key-guard'
1212
13- export type ParameterDefinition = Omit <
14- OpenAPIV3_1 . ParameterObject ,
15- 'schema'
16- > & {
13+ export interface ParameterDefinition
14+ extends Omit < OpenAPIV3_1 . ParameterObject , 'schema' > {
1715 type : unknown
1816 default ?: unknown
1917}
@@ -377,7 +375,7 @@ export function generateInterface(
377375 operation . responses [ '404' ] ||
378376 operation . responses [ '422' ] ||
379377 operation . responses [ '500' ] ||
380- operation . responses [ ' default' ] ||
378+ operation . responses . default ||
381379 Object . entries ( operation . responses ) . find ( ( [ statusCode ] ) =>
382380 isErrorStatusCode ( statusCode ) ,
383381 ) ?. [ 1 ]
You can’t perform that action at this time.
0 commit comments