mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Typings for swagger-ui-react * Typings for swagger-ui-react * Typings for swagger-ui-react * Typings for swagger-ui-react
14 lines
264 B
TypeScript
14 lines
264 B
TypeScript
import * as React from 'react';
|
|
import SwaggerUI from 'swagger-ui-react';
|
|
|
|
<div>
|
|
<SwaggerUI
|
|
docExpansion="none"
|
|
url="www.example.com/swagger.json"
|
|
requestInterceptor={request => {
|
|
console.log(request);
|
|
return request;
|
|
}}
|
|
/>
|
|
</div>;
|