formatter-options.d.ts 641 B

1234567891011121314
  1. import type { Formatter, FormatterPathType } from './formatter';
  2. import type { BabelCodeFrameOptions } from './types/babel__code-frame';
  3. declare type FormatterType = 'basic' | 'codeframe';
  4. declare type BasicFormatterOptions = {
  5. type: 'basic';
  6. pathType?: FormatterPathType;
  7. };
  8. declare type CodeframeFormatterOptions = {
  9. type: 'codeframe';
  10. pathType?: FormatterPathType;
  11. options?: BabelCodeFrameOptions;
  12. };
  13. declare type FormatterOptions = undefined | FormatterType | BasicFormatterOptions | CodeframeFormatterOptions | Formatter;
  14. export { FormatterOptions, FormatterType, BasicFormatterOptions, CodeframeFormatterOptions };