IgnorePlugin.d.ts 586 B

12345678910111213141516171819202122232425262728
  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. };