Files
old-slucajna-televizija/web/node_modules/anser/lib/index.d.ts
2017-10-16 11:19:46 +02:00

31 lines
670 B
TypeScript

// Type definitions for Anser
// Project: https://github.com/IonicaBizau/anser
export interface AnserJsonEntry {
content: string;
fg: string;
bg: string;
fg_truecolor: string;
bg_truecolor: string;
clearLine: boolean;
was_processed: boolean;
isEmpty(): boolean;
}
export interface AnserOptions {
use_classes?: boolean;
}
export default class Anser {
static ansiToJson(txt: string, options?: AnserOptions): AnserJsonEntry[];
static ansiToHtml(txt: string, options?: AnserOptions): string;
static ansiToText(txt: string, options?: AnserOptions): string;
static escapeForHtml(txt: string): string;
static linkify(txt: string): string;
}