prmbr-image-mksaas/content/docs/props.ts
javayhu 16aaf55a91 refactor: enhance documentation feature and update dependencies
- Updated content collections to include new schemas for better document handling.
- Added new documentation files for comparisons, customization, and internationalization.
- Introduced a manual installation guide and improved markdown support.
- Updated package.json with new dependencies for enhanced functionality.
- Added new images for documentation and improved layout components for better user experience.
- Adjusted TypeScript configurations for better path management.
2025-03-30 22:34:16 +08:00

78 lines
2.3 KiB
TypeScript

import type { Accordion, Accordions } from 'fumadocs-ui/components/accordion';
import type { Callout } from 'fumadocs-ui/components/callout';
import type { File, Folder } from 'fumadocs-ui/components/files';
import type { InlineTOC } from 'fumadocs-ui/components/inline-toc';
import type { TypeTable } from 'fumadocs-ui/components/type-table';
import type { Card } from 'fumadocs-ui/components/card';
import type { DocsLayoutProps } from 'fumadocs-ui/layouts/docs';
import type {
AnchorHTMLAttributes,
ComponentPropsWithoutRef,
HTMLAttributes,
} from 'react';
import type { DocsPageProps } from 'fumadocs-ui/page';
import type { AutoTypeTable } from 'fumadocs-typescript/ui';
export type AccordionsProps = Omit<
ComponentPropsWithoutRef<typeof Accordions>,
keyof ComponentPropsWithoutRef<'div'> | 'value' | 'onValueChange'
>;
export type AccordionProps = Omit<
ComponentPropsWithoutRef<typeof Accordion>,
keyof ComponentPropsWithoutRef<'div'>
>;
export type CalloutProps = Omit<
ComponentPropsWithoutRef<typeof Callout>,
keyof ComponentPropsWithoutRef<'div'>
>;
export type FileProps = Omit<
ComponentPropsWithoutRef<typeof File>,
keyof ComponentPropsWithoutRef<'div'>
>;
export type FolderProps = Omit<
ComponentPropsWithoutRef<typeof Folder>,
keyof ComponentPropsWithoutRef<'div'>
>;
export type InlineTOCProps = Omit<
ComponentPropsWithoutRef<typeof InlineTOC>,
keyof ComponentPropsWithoutRef<'div'>
>;
export type CardProps = Omit<
ComponentPropsWithoutRef<typeof Card>,
keyof Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>
>;
export type TypeTableProps = ComponentPropsWithoutRef<typeof TypeTable>;
export type ObjectTypeProps = ComponentPropsWithoutRef<
typeof TypeTable
>['type'][string];
export type { DocsLayoutProps };
export type NavbarProps = NonNullable<DocsLayoutProps['nav']>;
export type SidebarProps = Omit<
NonNullable<DocsLayoutProps['sidebar']>,
keyof HTMLAttributes<HTMLElement>
>;
export type PageProps = DocsPageProps;
export type BreadcrumbProps = NonNullable<DocsPageProps['breadcrumb']>;
export type TOCProps = NonNullable<DocsPageProps['tableOfContent']>;
export type TOCPopoverProps = NonNullable<
DocsPageProps['tableOfContentPopover']
>;
export type FooterProps = NonNullable<DocsPageProps['footer']>;
export type AutoTypeTableProps = ComponentPropsWithoutRef<typeof AutoTypeTable>;