mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-31 16:10:08 +00:00
14 lines
524 B
TypeScript
14 lines
524 B
TypeScript
import type { ApiDeclaredItem, ApiItemContainerMixin } from '@microsoft/api-extractor-model';
|
|
import { MethodsSection } from './section/MethodsSection';
|
|
import { PropertiesSection } from './section/PropertiesSection';
|
|
import { hasProperties, hasMethods } from './util';
|
|
|
|
export function Members({ item }: { readonly item: ApiDeclaredItem & ApiItemContainerMixin }) {
|
|
return (
|
|
<>
|
|
{hasProperties(item) ? <PropertiesSection item={item} /> : null}
|
|
{hasMethods(item) ? <MethodsSection item={item} /> : null}
|
|
</>
|
|
);
|
|
}
|