Skip to content

Commit

Permalink
fix: matcher type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 17, 2023
1 parent 73c2034 commit 3b80086
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/ModuleFilenameHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3b80086

Please sign in to comment.