File tree 2 files changed +16
-9
lines changed
2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,9 @@ const WebpackError = require("./WebpackError");
8
8
9
9
/** @typedef {import("./Module.js") } Module */
10
10
11
- /** @typedef {Object } Position
12
- * @property {number } column
13
- * @property {number } line
14
- */
15
-
16
- /** @typedef {Object } Loc
17
- * @property {Position } start
18
- * @property {Position } end
19
- */
11
+ /** @typedef {import("./Dependency.js").Position } Position */
12
+
13
+ /** @typedef {import("./Dependency.js").Loc } Loc */
20
14
21
15
class CommentCompilationWarning extends WebpackError {
22
16
/**
Original file line number Diff line number Diff line change @@ -48,4 +48,17 @@ class Dependency {
48
48
}
49
49
Dependency . compare = ( a , b ) => compareLocations ( a . loc , b . loc ) ;
50
50
51
+ /** @typedef {Object } Position
52
+ * @property {number } column
53
+ * @property {number } line
54
+ */
55
+
56
+ /** @typedef {Object } Loc
57
+ * @property {Position } start
58
+ * @property {Position } end
59
+ */
60
+
61
+ exports Position ;
62
+ exports Loc ;
63
+
51
64
module . exports = Dependency ;
You can’t perform that action at this time.
0 commit comments