Skip to content

Commit e7d4670

Browse files
committed
fix types
1 parent 18fc6dd commit e7d4670

File tree

22 files changed

+10
-1579
lines changed

22 files changed

+10
-1579
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { openapi } from '@/lib/openapi';
2+
import { createAPIPage } from 'fumadocs-openapi/ui';
3+
4+
export const APIPage = createAPIPage(openapi);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import defaultMdxComponents from 'fumadocs-ui/mdx';
22
import type { MDXComponents } from 'mdx/types';
3-
import { openapi } from '@/lib/openapi';
4-
import { APIPage } from 'fumadocs-openapi/ui';
3+
import { APIPage } from '@/components/api-page';
54

65
export function getMDXComponents(components?: MDXComponents): MDXComponents {
76
return {
87
...defaultMdxComponents,
9-
APIPage: (props) => <APIPage {...openapi.getAPIPageProps(props)} />,
8+
APIPage,
109
...components,
1110
};
1211
}

examples/waku-openapi/.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/waku-openapi/content/docs/index.mdx

Lines changed: 0 additions & 31 deletions
This file was deleted.

examples/waku-openapi/content/docs/meta.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/waku-openapi/package.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

examples/waku-openapi/postcss.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)