mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
423 B
TypeScript
22 lines
423 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;
|
|
}}
|
|
defaultModelExpandDepth={-1}
|
|
plugins={[
|
|
{
|
|
components: {
|
|
OperationTag: () => null,
|
|
},
|
|
},
|
|
]}
|
|
/>
|
|
</div>;
|