版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 год назад
12345678910111213141516171819202122
  1. declare function formatLine(line: string, outputTruncateLength?: number): string;
  2. type Color = (str: string) => string;
  3. interface DiffOptions {
  4. outputDiffMaxLines?: number;
  5. outputTruncateLength?: number;
  6. outputDiffLines?: number;
  7. showLegend?: boolean;
  8. colorSuccess?: Color;
  9. colorError?: Color;
  10. colorDim?: Color;
  11. }
  12. /**
  13. * Returns unified diff between two strings with coloured ANSI output.
  14. *
  15. * @private
  16. * @param {String} actual
  17. * @param {String} expected
  18. * @return {string} The diff.
  19. */
  20. declare function unifiedDiff(actual: string, expected: string, options?: DiffOptions): string;
  21. export { DiffOptions, formatLine, unifiedDiff };