Installation
npm install --save @types/marked-terminal
Summary
This package contains type definitions for marked-terminal (https://github.com/mikaelbr/marked-terminal).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marked-terminal.
import { Chalk } from "chalk";
import { Renderer } from "marked";
export as namespace TerminalRenderer;
export = TerminalRenderer;
declare class TerminalRenderer extends Renderer {
constructor(options?: TerminalRenderer.TerminalRendererOptions);
}
declare namespace TerminalRenderer {
interface TerminalRendererOptions {
code?: Chalk | ((s: string) => string) | undefined;
blockquote?: Chalk | ((s: string) => string) | undefined;
html?: Chalk | ((s: string) => string) | undefined;
heading?: Chalk | ((s: string) => string) | undefined;
firstHeading?: Chalk | ((s: string) => string) | undefined;
hr?: Chalk | ((s: string) => string) | undefined;
listitem?: Chalk | ((s: string) => string) | undefined;
table?: Chalk | ((s: string) => string) | undefined;
paragraph?: Chalk | ((s: string) => string) | undefined;
strong?: Chalk | ((s: string) => string) | undefined;
em?: Chalk | ((s: string) => string) | undefined;
codespan?: Chalk | ((s: string) => string) | undefined;
del?: Chalk | ((s: string) => string) | undefined;
link?: Chalk | ((s: string) => string) | undefined;
href?: Chalk | ((s: string) => string) | undefined;
list?: ((body: string, ordered?: boolean) => string) | undefined;
width?: number | undefined;
reflowText?: boolean | undefined;
showSectionPrefix?: boolean | undefined;
unescape?: boolean | undefined;
emoji?: boolean | undefined;
tableOptions?: any;
tab?: number | undefined;
}
}
Additional Details
- Last updated: Wed, 18 Oct 2023 05:47:08 GMT
- Dependencies: chalk, marked
Credits
These definitions were written by Bryan Kendall.