Chore: update deps

This commit is contained in:
Fuma Nama
2025-02-01 10:42:40 +08:00
parent d764310c60
commit 127d9dfc3f
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-openapi': patch
---
Fix type errors
+4 -1
View File
@@ -8,6 +8,7 @@ import {
import { MethodLabel } from '@/ui/components/method-label';
import { useTheme } from 'next-themes';
import { useEffect, useState } from 'react';
import type { OpenAPIV3_1 } from 'openapi-types';
export default function ScalarPlayground({
path,
@@ -60,7 +61,9 @@ function Trigger({ path, method }: { path: string; method: string }) {
buttonVariants({ color: 'primary', size: 'sm' }),
'px-3 py-1.5',
)}
onClick={() => client?.open({ path, method })}
onClick={() =>
client?.open({ path, method: method as OpenAPIV3_1.HttpMethods })
}
>
Test
</button>