File tree 7 files changed +233
-245
lines changed
src/librustdoc/html/static/js
7 files changed +233
-245
lines changed Original file line number Diff line number Diff line change 1
1
// This file contains type definitions that are processed by the Closure Compiler but are
2
2
// not put into the JavaScript we include as part of the documentation. It is used for
3
3
// type checking. See README.md in this directory for more info.
4
+ /* eslint-env es6 */
5
+ /* eslint no-var: "error" */
6
+ /* eslint prefer-const: "error" */
4
7
5
8
/* eslint-disable */
6
- var searchState ;
9
+ let searchState ;
7
10
function initSearch ( searchIndex ) { }
8
11
9
12
/**
@@ -15,7 +18,7 @@ function initSearch(searchIndex){}
15
18
* generics: Array<QueryElement>,
16
19
* }}
17
20
*/
18
- var QueryElement ;
21
+ let QueryElement ;
19
22
20
23
/**
21
24
* @typedef {{
@@ -25,7 +28,7 @@ var QueryElement;
25
28
* userQuery: string,
26
29
* }}
27
30
*/
28
- var ParserState ;
31
+ let ParserState ;
29
32
30
33
/**
31
34
* @typedef {{
@@ -38,7 +41,7 @@ var ParserState;
38
41
* foundElems: number,
39
42
* }}
40
43
*/
41
- var ParsedQuery ;
44
+ let ParsedQuery ;
42
45
43
46
/**
44
47
* @typedef {{
@@ -53,7 +56,7 @@ var ParsedQuery;
53
56
* type: (Array<?>|null)
54
57
* }}
55
58
*/
56
- var Row ;
59
+ let Row ;
57
60
58
61
/**
59
62
* @typedef {{
@@ -63,7 +66,7 @@ var Row;
63
66
* query: ParsedQuery,
64
67
* }}
65
68
*/
66
- var ResultsTable ;
69
+ let ResultsTable ;
67
70
68
71
/**
69
72
* @typedef {{
@@ -80,4 +83,4 @@ var ResultsTable;
80
83
* ty: number,
81
84
* }}
82
85
*/
83
- var Results ;
86
+ let Results ;
You can’t perform that action at this time.
0 commit comments