|
1 | 1 | import * as React from "react"; |
2 | | - |
3 | | -interface Request { |
4 | | - [k: string]: any; |
5 | | -} |
6 | | -interface Response { |
7 | | - [k: string]: any; |
8 | | -} |
9 | | -type System = any; |
10 | | - |
11 | | -type PluginGenerator = (system: System) => object; |
12 | | - |
13 | | -type Plugin = object | PluginGenerator; |
14 | | - |
15 | | -type Preset = () => unknown; |
16 | | - |
17 | | -export interface SwaggerUIProps { |
18 | | - spec?: object | string; |
19 | | - url?: string; |
20 | | - layout?: string; |
21 | | - onComplete?: (system: System) => void; |
22 | | - requestInterceptor?: (req: Request) => Request | Promise<Request>; |
23 | | - responseInterceptor?: (res: Response) => Response | Promise<Response>; |
24 | | - docExpansion?: "list" | "full" | "none"; |
25 | | - defaultModelExpandDepth?: number; |
26 | | - defaultModelsExpandDepth?: number; |
27 | | - defaultModelRendering?: "example" | "model"; |
28 | | - queryConfigEnabled?: boolean; |
29 | | - plugins?: Plugin[]; |
30 | | - supportedSubmitMethods?: Array<"get" | "put" | "post" | "delete" | "options" | "head" | "patch" | "trace">; |
31 | | - deepLinking?: boolean; |
32 | | - showMutatedRequest?: boolean; |
33 | | - showExtensions?: boolean; |
34 | | - showCommonExtensions?: boolean; |
35 | | - presets?: Preset[]; |
36 | | - filter?: string | boolean; |
37 | | - requestSnippetsEnabled?: boolean; |
38 | | - requestSnippets?: object; |
39 | | - displayOperationId?: boolean; |
40 | | - tryItOutEnabled?: boolean; |
41 | | - displayRequestDuration?: boolean; |
42 | | - persistAuthorization?: boolean; |
43 | | - withCredentials?: boolean; |
44 | | - oauth2RedirectUrl?: string; |
45 | | -} |
| 2 | +import { SwaggerUIProps } from "./swagger-ui-react"; |
46 | 3 |
|
47 | 4 | declare const SwaggerUI: React.FunctionComponent<SwaggerUIProps>; |
48 | | -export default SwaggerUI; |
| 5 | +export = SwaggerUI; |
0 commit comments