IgnorePlugin.d.ts 582 B

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