aboutsummaryrefslogtreecommitdiff
path: root/node_modules/webpack/declarations/plugins/IgnorePlugin.d.ts
blob: 01ac08139fb010782d6847766b7d9b69bdce35b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * This file was automatically generated.
 * DO NOT MODIFY BY HAND.
 * Run `yarn special-lint-fix` to update
 */

export type IgnorePluginOptions =
	| {
			/**
			 * A RegExp to test the context (directory) against
			 */
			contextRegExp?: RegExp;
			/**
			 * A RegExp to test the request against
			 */
			resourceRegExp?: RegExp;
	  }
	| {
			/**
			 * A filter function for context
			 */
			checkContext?: ((context: string) => boolean);
			/**
			 * A filter function for resource
			 */
			checkResource?: ((resource: string) => boolean);
	  };