版博士V2.0程序
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

23 satır
658 B

  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 };