Search...

codeBlock

export declare function codeBlock<C extends string>(content: C): `\`\`\`\n${C}\n\`\`\``;
export declare function codeBlock<C extends string>(content: C): `\`\`\`\n${C}\n\`\`\``;
Wraps the content inside a code block with no language.
NameConstraintsOptionalDefaultDescription
CstringNoThis is inferred by the supplied content
NameTypeOptionalDescription
contentCNoThe content to wrap