ansi-to-html.d.ts 617 B

123456789101112131415161718192021222324252627282930
  1. // Type definitions for ansi-to-html v.0.4.1
  2. // Project: https://github.com/rburns/ansi-to-html
  3. // Definitions by: Steven Silvester <https://github.com/blink1073>
  4. interface IConvertOptions {
  5. fg?: string;
  6. bg?: string;
  7. newline?: boolean;
  8. escapeXML?: boolean;
  9. stream?: boolean;
  10. }
  11. declare class Convert {
  12. constructor(options?: IConvertOptions);
  13. toHtml(data: string): string;
  14. }
  15. interface ConvertConstructor {
  16. new (options?: IConvertOptions): Convert;
  17. (options?: IConvertOptions): Convert;
  18. }
  19. declare module "ansi-to-html" {
  20. export = convert;
  21. }
  22. declare var convert: ConvertConstructor;