mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
14 lines
313 B
TypeScript
14 lines
313 B
TypeScript
import type { DocCodeSpan } from '@microsoft/tsdoc';
|
|
import { type DocNodeJSON, node } from './CommentNode.js';
|
|
|
|
export interface DocCodeSpanJSON extends DocNodeJSON {
|
|
code: string;
|
|
}
|
|
|
|
export function codeSpan(codeSpan: DocCodeSpan): DocCodeSpanJSON {
|
|
return {
|
|
...node(codeSpan),
|
|
code: codeSpan.code,
|
|
};
|
|
}
|