From d00074f687e6802ce5230325aee2caea63990ade Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sat, 6 Dec 2014 09:24:30 -0800 Subject: [PATCH] Add externs file for closure type checking --- util/externs.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 util/externs.js diff --git a/util/externs.js b/util/externs.js new file mode 100644 index 0000000..aea77d4 --- /dev/null +++ b/util/externs.js @@ -0,0 +1,28 @@ +// +// Externs for Closure Compiler +// https://developers.google.com/closure/compiler/ +// +// Usage: +// java -jar compiler.jar \ +// --jscomp_warning reportUnknownTypes \ +// --warning_level VERBOSE \ +// --summary_detail_level 3 \ +// --externs util/externs.js \ +// lib/encoding.js +// + +/** + * @param {string} name + * @return {*} + */ +function require(name) {} + +/** + * @type {Object} + */ +var module; + +/** + * @type {Object.} + */ +module.exports;