fix: matcher type

This commit is contained in:
alexander.akait 2023-05-17 14:25:07 +03:00
parent 73c20347fe
commit 3b80086b65
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ const memoize = require("./util/memoize");
/** @typedef {import("./RequestShortener")} RequestShortener */
/** @typedef {typeof import("./util/Hash")} Hash */
/** @typedef {string | RegExp | string[] | RegExp[]} Matcher */
/** @typedef {string | RegExp | (string | RegExp)[]} Matcher */
/** @typedef {{test?: Matcher, include?: Matcher, exclude?: Matcher }} MatchObject */
const ModuleFilenameHelpers = exports;

8
types.d.ts vendored
View File

@ -6818,11 +6818,11 @@ declare interface MapOptions {
module?: boolean;
}
declare interface MatchObject {
test?: string | RegExp | string[] | RegExp[];
include?: string | RegExp | string[] | RegExp[];
exclude?: string | RegExp | string[] | RegExp[];
test?: string | RegExp | (string | RegExp)[];
include?: string | RegExp | (string | RegExp)[];
exclude?: string | RegExp | (string | RegExp)[];
}
type Matcher = string | RegExp | string[] | RegExp[];
type Matcher = string | RegExp | (string | RegExp)[];
/**
* Options object for in-memory caching.