Skip to content

Commit 3b80086

Browse files
fix: matcher type
1 parent 73c2034 commit 3b80086

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/ModuleFilenameHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const memoize = require("./util/memoize");
1414
/** @typedef {import("./RequestShortener")} RequestShortener */
1515
/** @typedef {typeof import("./util/Hash")} Hash */
1616

17-
/** @typedef {string | RegExp | string[] | RegExp[]} Matcher */
17+
/** @typedef {string | RegExp | (string | RegExp)[]} Matcher */
1818
/** @typedef {{test?: Matcher, include?: Matcher, exclude?: Matcher }} MatchObject */
1919

2020
const ModuleFilenameHelpers = exports;

types.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6818,11 +6818,11 @@ declare interface MapOptions {
68186818
module?: boolean;
68196819
}
68206820
declare interface MatchObject {
6821-
test?: string | RegExp | string[] | RegExp[];
6822-
include?: string | RegExp | string[] | RegExp[];
6823-
exclude?: string | RegExp | string[] | RegExp[];
6821+
test?: string | RegExp | (string | RegExp)[];
6822+
include?: string | RegExp | (string | RegExp)[];
6823+
exclude?: string | RegExp | (string | RegExp)[];
68246824
}
6825-
type Matcher = string | RegExp | string[] | RegExp[];
6825+
type Matcher = string | RegExp | (string | RegExp)[];
68266826

68276827
/**
68286828
* Options object for in-memory caching.

0 commit comments

Comments
 (0)