Added responseInterceptor swagger-ui-dist (#40643)

* Added responseInterceptor

* Fixed typo
This commit is contained in:
brycematheson1234
2019-12-02 17:46:39 -08:00
committed by Ron Buckton
parent 746dfcbb72
commit 0614df6833
+10
View File
@@ -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;