Skip to content

Commit 59bbf8b

Browse files
committed
[types] fix an error TS v6 ignores but v7 fails on
1 parent 190e236 commit 59bbf8b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function parseInternal(string, env, opts) {
304304
}, /** @type {ParseEntry[]} */ ([]));
305305
}
306306

307-
/** @type {import('./parse')} */
307+
/** @type {typeof import('./parse')} */
308308
module.exports = function parse(s, env, opts) {
309309
var mapped = parseInternal(s, env, opts);
310310
if (typeof env !== 'function') {

quote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var OPS = /** @type {const} */ ([
2424
var LINE_TERMINATORS = /[\n\r\u2028\u2029]/;
2525
var GLOB_SHELL_SPECIAL = /[\s#!"$&'():;<=>@\\^`|]/g;
2626

27-
/** @type {import('./quote')} */
27+
/** @type {typeof import('./quote')} */
2828
module.exports = function quote(xs) {
2929
return xs.map(function (s) {
3030
if (s === '') {

0 commit comments

Comments
 (0)