Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Fix type of module.require
Browse files Browse the repository at this point in the history
Although it has the same type as the global require function, the global
require function isn't a type (constructor).  So update the type of
module.require to match it.  This fixes the following warning:

./core.js:76: WARNING - Bad type annotation. Unknown type require
 * @type {require}
          ^

Signed-off-by: Kevin Locke <[email protected]>
  • Loading branch information
kevinoid committed Apr 13, 2013
1 parent 53d8d28 commit 338e07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var exports;
module.exports;

/**
* @type {require}
* @type {function(string)}
*/
module.require;

Expand Down

0 comments on commit 338e07e

Please sign in to comment.