
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@types/swagger-ui-react
Advanced tools
npm install --save @types/swagger-ui-react
This package contains type definitions for swagger-ui-react (https://github.com/swagger-api/swagger-ui#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swagger-ui-react.
// Type definitions for swagger-ui-react 4.11
// Project: https://github.com/swagger-api/swagger-ui#readme
// Definitions by: viki.green <https://github.com/VictoriaGreen93>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
interface Request {
[k: string]: any;
}
interface Response {
[k: string]: any;
}
type System = any;
type PluginGenerator = (system: System) => object;
type Plugin = object | PluginGenerator;
type Preset = () => unknown;
export interface SwaggerUIProps {
spec?: object | string | undefined;
url?: string | undefined;
layout?: string | undefined;
onComplete?: ((system: System) => void) | undefined;
requestInterceptor?: ((req: Request) => Request | Promise<Request>) | undefined;
responseInterceptor?: ((res: Response) => Response | Promise<Response>) | undefined;
docExpansion?: 'list' | 'full' | 'none' | undefined;
defaultModelExpandDepth?: number | undefined;
defaultModelsExpandDepth?: number | undefined;
defaultModelRendering?: "example" | "model";
queryConfigEnabled?: boolean;
plugins?: Plugin[] | undefined;
supportedSubmitMethods?: string[] | undefined;
deepLinking?: boolean | undefined;
showMutatedRequest?: boolean | undefined;
showExtensions?: boolean | undefined;
presets?: Preset[] | undefined;
filter?: string | boolean | undefined;
requestSnippetsEnabled?: boolean | undefined;
requestSnippets?: object | undefined;
displayOperationId?: boolean | undefined;
tryItOutEnabled?: boolean | undefined;
displayRequestDuration?: boolean;
persistAuthorization?: boolean;
withCredentials?: boolean;
}
declare class SwaggerUI extends React.PureComponent<SwaggerUIProps> {}
export default SwaggerUI;
These definitions were written by viki.green.
FAQs
TypeScript definitions for swagger-ui-react
The npm package @types/swagger-ui-react receives a total of 178,901 weekly downloads. As such, @types/swagger-ui-react popularity was classified as popular.
We found that @types/swagger-ui-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.