mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
21 lines
582 B
TypeScript
21 lines
582 B
TypeScript
import type { ApiInterfaceJSON } from '@discordjs/api-extractor-utils';
|
|
import { DocContainer } from '../DocContainer';
|
|
import { MethodsSection, PropertiesSection } from '../Sections';
|
|
|
|
export function Interface({ data }: { data: ApiInterfaceJSON }) {
|
|
return (
|
|
<DocContainer
|
|
name={data.name}
|
|
kind={data.kind}
|
|
excerpt={data.excerpt}
|
|
summary={data.summary}
|
|
typeParams={data.typeParameters}
|
|
methods={data.methods}
|
|
properties={data.properties}
|
|
>
|
|
<PropertiesSection data={data.properties} />
|
|
<MethodsSection data={data.methods} />
|
|
</DocContainer>
|
|
);
|
|
}
|