mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
fix(website): show headers for type aliases (#9054)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import type { ApiVariable } from '@microsoft/api-extractor-model';
|
||||
import { SyntaxHighlighter } from '../SyntaxHighlighter';
|
||||
import { Documentation } from '../documentation/Documentation';
|
||||
import { ObjectHeader } from '../documentation/ObjectHeader';
|
||||
import { SummarySection } from '../documentation/section/SummarySection';
|
||||
|
||||
export function Variable({ item }: { item: ApiVariable }) {
|
||||
return (
|
||||
<Documentation item={item}>
|
||||
<SyntaxHighlighter code={item.excerpt.text} />
|
||||
<Documentation>
|
||||
<ObjectHeader item={item} />
|
||||
<SummarySection item={item} />
|
||||
</Documentation>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user