mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
16 lines
362 B
TypeScript
16 lines
362 B
TypeScript
import type { DocFencedCode } from '@microsoft/tsdoc';
|
|
import { type DocNodeJSON, node } from './CommentNode.js';
|
|
|
|
export interface DocFencedCodeJSON extends DocNodeJSON {
|
|
code: string;
|
|
language: string;
|
|
}
|
|
|
|
export function fencedCode(fencedCode: DocFencedCode) {
|
|
return {
|
|
...node(fencedCode),
|
|
language: fencedCode.language,
|
|
code: fencedCode.code,
|
|
};
|
|
}
|