Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

printDiffs.d.ts 1.8KB

12345678910111213141516171819202122
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. import { Diff } from './cleanupSemantic';
  8. import type { DiffOptions, DiffOptionsNormalized } from './types';
  9. export declare const printDeleteLine: (line: string, isFirstOrLast: boolean, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder, }: DiffOptionsNormalized) => string;
  10. export declare const printInsertLine: (line: string, isFirstOrLast: boolean, { bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder, }: DiffOptionsNormalized) => string;
  11. export declare const printCommonLine: (line: string, isFirstOrLast: boolean, { commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder, }: DiffOptionsNormalized) => string;
  12. export declare const hasCommonDiff: (diffs: Array<Diff>, isMultiline: boolean) => boolean;
  13. export declare type ChangeCounts = {
  14. a: number;
  15. b: number;
  16. };
  17. export declare const countChanges: (diffs: Array<Diff>) => ChangeCounts;
  18. export declare const printAnnotation: ({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines, }: DiffOptionsNormalized, changeCounts: ChangeCounts) => string;
  19. export declare const printDiffLines: (diffs: Array<Diff>, options: DiffOptionsNormalized) => string;
  20. export declare const createPatchMark: (aStart: number, aEnd: number, bStart: number, bEnd: number, { patchColor }: DiffOptionsNormalized) => string;
  21. export declare const diffStringsUnified: (a: string, b: string, options?: DiffOptions | undefined) => string;
  22. export declare const diffStringsRaw: (a: string, b: string, cleanup: boolean) => Array<Diff>;