UNPKG

1.49 kBTypeScriptView Raw
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 */
7export declare type DiffOptionsColor = (arg: string) => string;
8export declare type DiffOptions = {
9 aAnnotation?: string;
10 aColor?: DiffOptionsColor;
11 aIndicator?: string;
12 bAnnotation?: string;
13 bColor?: DiffOptionsColor;
14 bIndicator?: string;
15 changeColor?: DiffOptionsColor;
16 changeLineTrailingSpaceColor?: DiffOptionsColor;
17 commonColor?: DiffOptionsColor;
18 commonIndicator?: string;
19 commonLineTrailingSpaceColor?: DiffOptionsColor;
20 contextLines?: number;
21 emptyFirstOrLastLinePlaceholder?: string;
22 expand?: boolean;
23 includeChangeCounts?: boolean;
24 omitAnnotationLines?: boolean;
25 patchColor?: DiffOptionsColor;
26};
27export declare type DiffOptionsNormalized = {
28 aAnnotation: string;
29 aColor: DiffOptionsColor;
30 aIndicator: string;
31 bAnnotation: string;
32 bColor: DiffOptionsColor;
33 bIndicator: string;
34 changeColor: DiffOptionsColor;
35 changeLineTrailingSpaceColor: DiffOptionsColor;
36 commonColor: DiffOptionsColor;
37 commonIndicator: string;
38 commonLineTrailingSpaceColor: DiffOptionsColor;
39 contextLines: number;
40 emptyFirstOrLastLinePlaceholder: string;
41 expand: boolean;
42 includeChangeCounts: boolean;
43 omitAnnotationLines: boolean;
44 patchColor: DiffOptionsColor;
45};