Skip to content

Commit

Permalink
removing typedef exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Legends committed Jun 21, 2018
1 parent 7969a5a commit afdbf71
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions lib/Dependency.js
Expand Up @@ -7,6 +7,16 @@
const compareLocations = require("./compareLocations");
const DependencyReference = require("./dependencies/DependencyReference");

/** @typedef {Object} Position
* @property {number} column
* @property {number} line
*/

/** @typedef {Object} Loc
* @property {Position} start
* @property {Position} end
*/

class Dependency {
constructor() {
this.module = null;
Expand Down Expand Up @@ -48,17 +58,4 @@ class Dependency {
}
Dependency.compare = (a, b) => compareLocations(a.loc, b.loc);

/** @typedef {Object} Position
* @property {number} column
* @property {number} line
*/

/** @typedef {Object} Loc
* @property {Position} start
* @property {Position} end
*/

exports Position;
exports Loc;

module.exports = Dependency;

0 comments on commit afdbf71

Please sign in to comment.