Skip to content

Commit 0ea9b98

Browse files
Mohsen Azimisokra
authored andcommitted
Use ts nightly and fix JSDoc for comment method in RuntimeTemplate
1 parent 724987a commit 0ea9b98

File tree

3 files changed

+14
-23
lines changed

3 files changed

+14
-23
lines changed

lib/RuntimeTemplate.js

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,22 @@
66

77
const Template = require("./Template");
88

9-
/**
10-
* @typedef CommentOptions
11-
* @property {string=} request
12-
* @property {string=} chunkName
13-
* @property {string=} chunkReason
14-
* @property {string=} message
15-
* @property {string=} exportName
16-
*/
17-
189
module.exports = class RuntimeTemplate {
1910
constructor(outputOptions, requestShortener) {
2011
this.outputOptions = outputOptions || {};
2112
this.requestShortener = requestShortener;
2213
}
2314

24-
comment(
25-
/** @type {CommentOptions} */ {
26-
request,
27-
chunkName,
28-
chunkReason,
29-
message,
30-
exportName
31-
}
32-
) {
15+
/**
16+
* Add a comment
17+
* @param {object} options
18+
* @param {string=} options.request
19+
* @param {string=} options.chunkName
20+
* @param {string=} options.chunkReason
21+
* @param {string=} options.message
22+
* @param {string=} options.exportName
23+
*/
24+
comment({ request, chunkName, chunkReason, message, exportName }) {
3325
let content;
3426
if (this.outputOptions.pathinfo) {
3527
content = [message, request, chunkName, chunkReason]

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"simple-git": "^1.65.0",
6464
"sinon": "^2.3.2",
6565
"style-loader": "^0.19.1",
66-
"typescript": "^2.9.0-dev.20180405",
66+
"typescript": "^2.9.0-dev.20180411",
6767
"url-loader": "^0.6.2",
6868
"val-loader": "^1.0.2",
6969
"vm-browserify": "~0.0.0",
@@ -110,7 +110,6 @@
110110
"prelint": "yarn setup",
111111
"lint": "yarn code-lint && yarn schema-lint",
112112
"code-lint": "eslint setup lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\"",
113-
"tsc": "tsc --pretty",
114113
"fix": "yarn code-lint --fix",
115114
"pretty": "prettier \"setup/**/*.js\" \"lib/**/*.js\" \"bin/*.js\" \"hot/*.js\" \"buildin/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\" \"schemas/**/*.js\" \"declarations.d.ts\" --write",
116115
"schema-lint": "mocha test/*.lint.js --opts test/lint-mocha.opts",

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4498,9 +4498,9 @@ typedarray@^0.0.6:
44984498
version "0.0.6"
44994499
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
45004500

4501-
typescript@^2.9.0-dev.20180405:
4502-
version "2.9.0-dev.20180405"
4503-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.0-dev.20180405.tgz#c204f6d1a8e5263dd3e7f153e25a4cdf0d2693ac"
4501+
typescript@^2.9.0-dev.20180411:
4502+
version "2.9.0-dev.20180411"
4503+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.0-dev.20180411.tgz#0791768b1e4d4d10bfc8b84cdf1239050065c859"
45044504

45054505
ua-parser-js@^0.7.9:
45064506
version "0.7.17"

0 commit comments

Comments
 (0)