Skip to content

Commit d00074f

Browse files
Add externs file for closure type checking
1 parent 4e379bd commit d00074f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: util/externs.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//
2+
// Externs for Closure Compiler
3+
// https://developers.google.com/closure/compiler/
4+
//
5+
// Usage:
6+
// java -jar compiler.jar \
7+
// --jscomp_warning reportUnknownTypes \
8+
// --warning_level VERBOSE \
9+
// --summary_detail_level 3 \
10+
// --externs util/externs.js \
11+
// lib/encoding.js
12+
//
13+
14+
/**
15+
* @param {string} name
16+
* @return {*}
17+
*/
18+
function require(name) {}
19+
20+
/**
21+
* @type {Object}
22+
*/
23+
var module;
24+
25+
/**
26+
* @type {Object.<string,*>}
27+
*/
28+
module.exports;

0 commit comments

Comments
 (0)