fix(openapi): missing legacy export

This commit is contained in:
Fuma Nama
2026-06-12 12:16:36 +08:00
parent d1c19de6a1
commit 2b7907710b
3 changed files with 10 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-openapi': patch
---
fix missing legacy export
+4 -1
View File
@@ -1,8 +1,11 @@
'use client';
import { createOpenAPIPage, type CreateOpenAPIPageOptions } from '.';
import { createOpenAPIPage, type OpenAPIPageProps, type CreateOpenAPIPageOptions } from '.';
/** @deprecated Use `CreateOpenAPIPageOptions` insteawd */
export type CreateClientAPIPageOptions = CreateOpenAPIPageOptions;
/** @deprecated Use `OpenAPIPageProps` instead */
export type ClientApiPageProps = OpenAPIPageProps;
/** @deprecated use `createOpenAPIPage()` from `fumadocs-openapi/ui` instead */
export const createClientAPIPage = createOpenAPIPage;
+1 -2
View File
@@ -9,8 +9,7 @@ export default defineConfig({
target: 'es2023',
entry: [
'./src/{index,i18n}.ts',
'./src/ui/index.tsx',
'./src/ui/base.tsx',
'./src/ui/{index,base,create-client}.tsx',
'./src/ui/asyncapi/index.tsx',
'./src/ui/asyncapi-base.tsx',
'./src/ui/client/index.tsx',