KnodesCommunity/typedoc-plugins

View on GitHub
packages/plugin-code-blocks/src/output/theme/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { RenderTemplate, RendererEvent, Theme } from 'typedoc';

import { ICodeBlock, IInlineCodeBlock } from '../../types';

export interface ICodeBlocksPluginThemeMethods {
    renderCodeBlock: RenderTemplate<ICodeBlock>;
    renderInlineCodeBlock: RenderTemplate<IInlineCodeBlock>;
}
export interface ICodeBlocksPluginTheme extends Theme {
    codeBlocksPlugin( event: RendererEvent ): ICodeBlocksPluginThemeMethods;
}

export const isCodeBlocksPluginTheme = ( theme: Theme ): theme is ICodeBlocksPluginTheme => 'codeBlocksPlugin' in theme;