Skip to content

Commit 841012c

Browse files
committed
apply suggestions
1 parent d754c73 commit 841012c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export { ConfigTypes } from './types/redocly-yaml';
1717
export type {
1818
Oas3Definition,
1919
Oas3_1Definition,
20-
Oas3ComponentsBase,
20+
Oas3Components,
2121
Oas3_1Components,
2222
Oas3PathItem,
2323
Oas3Paths,

packages/core/src/typings/openapi.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export interface Oas3RequestBody<T extends Oas3Schema | Oas3_1Schema = Oas3Schem
236236
content: { [mime: string]: Oas3MediaType<T> };
237237
}
238238

239-
export interface Oas3Responses<T extends Oas3Schema | Oas3_1Schema> {
239+
export interface Oas3Responses<T extends Oas3Schema | Oas3_1Schema = Oas3Schema | Oas3_1Schema> {
240240
[code: string]: Oas3Response<T>;
241241
}
242242

@@ -284,7 +284,8 @@ export interface Oas3_1Components extends Oas3ComponentsBase<Oas3_1Schema> {
284284

285285
export interface Oas3Components extends Oas3ComponentsBase<Oas3Schema> {}
286286

287-
export type Oas3ComponentName<T extends Oas3Schema | Oas3_1Schema> = keyof Oas3ComponentsBase<T>;
287+
export type Oas3ComponentName<T extends Oas3Schema | Oas3_1Schema = Oas3Schema | Oas3_1Schema> =
288+
keyof Oas3ComponentsBase<T>;
288289

289290
export interface Oas3SecurityRequirement {
290291
[name: string]: string[];

0 commit comments

Comments
 (0)