-
Notifications
You must be signed in to change notification settings - Fork 110
/
externs.js
191 lines (171 loc) · 3.44 KB
/
externs.js
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/**
* @externs
* @suppress {duplicate,checkTypes}
*/
// NOTE: generated by tsickle, do not edit.
/** @type {string} */
var globalX;
/**
* @constructor
* @struct
*/
function GlobalClass() {}
/** @const */
var globalNamespace = {};
/** @type {string} */
globalNamespace.Y;
/**
* @constructor
* @struct
*/
globalNamespace.GlobalNamespaced = function() {};
/** @type {string} */
var exported;
/** @const */
var DeclareTestModule = {};
/** @const */
DeclareTestModule.inner = {};
/** @type {boolean} */
DeclareTestModule.inner.someBool;
/**
* @record
* @struct
*/
DeclareTestModule.Foo = function() {};
/** @type {string} */
DeclareTestModule.Foo.prototype.field;
/**
* @param {string} a
* @return {number}
*/
DeclareTestModule.Foo.prototype.method = function(a) {};
/**
* @constructor
* @struct
* @param {number} a
*/
DeclareTestModule.Clazz = function(a) {};
/** @type {number} */
DeclareTestModule.Clazz.field;
/**
* Comment
* @param {string} a
* @return {number}
*/
DeclareTestModule.Clazz.prototype.method = function(a) {};
/**
* @param {string} a
* @return {number}
*/
DeclareTestModule.Clazz.staticMethod = function(a) {};
/**
* @constructor
* @struct
*/
DeclareTestModule.Example = function() {};
/**
* @return {number}
*/
DeclareTestModule.Example.methodA = function() {};
/**
* @return {string}
*/
DeclareTestModule.Example.prototype.methodA = function() {};
/**
* @record
* @struct
*/
DeclareTestModule.NotYetHandled = function() {};
/* TODO: IndexSignature: DeclareTestModule */
/** @const */
DeclareTestModule.Enumeration = {};
/** @const {number} */
DeclareTestModule.Enumeration.Value1;
/** @const {number} */
DeclareTestModule.Enumeration.Value3;
/** @const */
DeclareTestModule.StringEnum = {};
/** @const {number} */
DeclareTestModule.StringEnum.foo;
/* TODO: StringLiteral: '.tricky.invalid name' */
/** @typedef {(string|number)} */
DeclareTestModule.TypeAlias;
/** @const */
var tsickle_declare_module = {};
// Derived from: declare module "DeclareTest-QuotedModule"
/** @const */
tsickle_declare_module.DeclareTest_QuotedModule = {};
/** @type {string} */
tsickle_declare_module.DeclareTest_QuotedModule.foo;
/** @type {number} */
var declareGlobalVar;
/**
* @param {string} x
* @return {number}
*/
function declareGlobalFunction(x) {}
/**
* @record
* @struct
*/
function DeclareTestInterface() {}
/** @type {string} */
DeclareTestInterface.prototype.foo;
/**
* @constructor
* @struct
* @param {number=} a
*/
function MultipleConstructors(a) {}
/**
* @return {?}
*/
Object.prototype.myMethod = function() {};
/**
* @param {string|number} x_or_y
* @param {string=} x
* @return {!CodeMirror.Editor}
*/
function CodeMirror(x_or_y, x) {}
/**
* @record
* @struct
*/
CodeMirror.Editor = function() {};
/** @type {string} */
CodeMirror.Editor.prototype.name;
/**
* @param {string|number} url_or_status
* @param {string|number=} url_or_status1
* @return {void}
*/
function redirect(url_or_status, url_or_status1) {}
/**
* @param {number} a
* @param {...?|string} b
* @return {string}
*/
function TestOverload(a, b) {}
/**
* @record
* @struct
*/
function BareInterface() {}
/** @type {string} */
BareInterface.prototype.name;
/**
* @param {string} tsickle_arguments
* @return {?}
*/
function usesArguments(tsickle_arguments) {}
/**
* @param {?} __0
* @return {?}
*/
function destructures(__0) {}
/** @const */
var ChartType = {};
/** @const {number} */
ChartType.line;
/** @const {number} */
ChartType.bar;