~glacambre/firenvim

ref: 076c1a4f04db2173afb395d0af8c63a5bbcab6a8 firenvim/src/firenvim.d.ts -rw-r--r-- 1.6 KiB
076c1a4f — Brian Ryall fixes installing fire nvim on brave 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
type NvimParameters = Array<[string, string]>;

interface INvimApiInfo {
    0: number;
    1: {
        error_types: {[key: string]: { id: number }},
        functions: Array<{
            deprecated_since?: number,
            method: boolean,
            name: string,
            parameters: NvimParameters,
            return_type: string,
            since: number,
        }>,
        types: {
            [key: string]: { id: number, prefix: string },
        },
        ui_events: Array<{
            name: string,
            parameters: NvimParameters,
            since: number,
        }>,
        ui_options: string[],
        version: {
            api_compatible: number,
            api_level: number,
            api_prerelease: boolean,
            major: number,
            minor: number,
            patch: number,
        },
    };
}

type ResizeUpdate = [number, number, number];
type GotoUpdate = [number, number, number];
type LineUpdate = [number, number, number, Array<[string, number, number?]>];
type HighlightUpdateElement = {
      background?: number,
      blend?: number,
      bold?: boolean,
      foreground?: number,
      italic?: boolean,
      reverse?: boolean,
      special?: number,
      strikethrough?: boolean,
      undercurl?: boolean,
      underline?: boolean,
}
type HighlightUpdate = [number, HighlightUpdateElement];
type HighlightElement = {
      background?: string,
      bold?: boolean,
      foreground?: string,
      italic?: boolean,
      special?: number,
      strikethrough?: boolean,
      undercurl?: boolean,
      underline?: boolean,
}
type HighlightArray = Array<HighlightElement>;