chore: fix breaking change for swagger type

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-12-09 13:13:27 +01:00
parent 0216090b36
commit 5993488172
@@ -16,7 +16,7 @@
import { makeStyles } from '@material-ui/core/styles';
import { useEffect, useState } from 'react';
import SwaggerUI, { SwaggerUIProps } from 'swagger-ui-react';
import SwaggerUI from 'swagger-ui-react';
import 'swagger-ui-react/swagger-ui.css';
const useStyles = makeStyles(theme => ({
@@ -179,7 +179,7 @@ const useStyles = makeStyles(theme => ({
export type OpenApiDefinitionProps = {
definition: string;
} & Omit<SwaggerUIProps, 'spec'>;
} & Omit<React.ComponentProps<typeof SwaggerUI>, 'spec'>;
export const OpenApiDefinition = ({
definition,