UNPKG

582 BTypeScriptView Raw
1/**
2 * This file was automatically generated.
3 * DO NOT MODIFY BY HAND.
4 * Run `yarn special-lint-fix` to update
5 */
6
7export type IgnorePluginOptions =
8 | {
9 /**
10 * A RegExp to test the context (directory) against
11 */
12 contextRegExp?: RegExp;
13 /**
14 * A RegExp to test the request against
15 */
16 resourceRegExp?: RegExp;
17 }
18 | {
19 /**
20 * A filter function for context
21 */
22 checkContext?: (context: string) => boolean;
23 /**
24 * A filter function for resource and context
25 */
26 checkResource?: (resource: string, context: string) => boolean;
27 };