diff --git a/types/swagger-ui-dist/index.d.ts b/types/swagger-ui-dist/index.d.ts index d1ce0fe868..cdc48b7b74 100644 --- a/types/swagger-ui-dist/index.d.ts +++ b/types/swagger-ui-dist/index.d.ts @@ -99,6 +99,12 @@ export interface SwaggerConfigs { */ requestInterceptor?: ((request: SwaggerRequest) => SwaggerRequest); + /** + * Function to intercept remote definition, "Try it out", and OAuth 2.0 responses. + * Accepts one argument responseInterceptor(response) and must return the modified response, or a Promise that resolves to the modified response. + */ + responseInterceptor?: ((response: SwaggerResponse) => SwaggerResponse); + [k: string]: any; } @@ -118,4 +124,8 @@ export interface SwaggerRequest { [k: string]: any; } +export interface SwaggerResponse { + [k: string]: any; +} + export const SwaggerUIStandalonePreset: any;