Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
Add externs file for closure type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Dec 6, 2014
1 parent 4e379bd commit d00074f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions util/externs.js
Original file line number Diff line number Diff line change
@@ -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.<string,*>}
*/
module.exports;

0 comments on commit d00074f

Please sign in to comment.