FormatterFactory.d.ts 400 B

123456
  1. import { Formatter } from './Formatter';
  2. import { CodeFrameFormatterOptions } from './CodeframeFormatter';
  3. declare type FormatterType = undefined | 'default' | 'codeframe' | Formatter;
  4. declare type FormatterOptions = CodeFrameFormatterOptions;
  5. declare function createFormatter(type?: FormatterType, options?: FormatterOptions): Formatter;
  6. export { createFormatter, FormatterType, FormatterOptions };