Skip to content

Commit

Permalink
fix: ignore any type
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Jun 17, 2024
1 parent 91d585c commit d5642b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function extractAuth(methodDescription: string): string {
return methodDescription.split('Auth level: ')[1];
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function getMethodsByPackage(spec: any): MethodByPkg {
const methodsByPackage: MethodByPkg = {};
for (const method of spec.methods) {
Expand Down Expand Up @@ -107,6 +108,7 @@ export default function Example() {
setSelectedVersion(event.target.value);
window.history.pushState({}, '', `?version=${event.target.value}`);
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const [spec, setSpec] = useState<any>();
const [open, setOpen] = useState(false);
const [sidebarOpen, setSidebarOpen] = useState(false);
Expand Down Expand Up @@ -177,6 +179,7 @@ export default function Example() {
}
}, [spec]);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const activateSidebar = (param: any) => {
setOpen(true);
setCurrentParam(param);
Expand Down

0 comments on commit d5642b6

Please sign in to comment.