refactor: docs design (#8487)

This commit is contained in:
Noel
2022-08-15 14:48:00 +02:00
committed by GitHub
parent d09ef1e425
commit 4ab1d09997
44 changed files with 1533 additions and 1251 deletions

View File

@@ -2,11 +2,7 @@ import { DocContainer } from '../DocContainer';
import { ParametersSection } from '../Sections';
import type { DocFunction } from '~/DocModel/DocFunction';
export interface FunctionProps {
data: ReturnType<DocFunction['toJSON']>;
}
export function Function({ data }: FunctionProps) {
export function Function({ data }: { data: ReturnType<DocFunction['toJSON']> }) {
return (
<DocContainer
name={`${data.name}${data.overloadIndex ? ` (${data.overloadIndex})` : ''}`}