utils.d.ts 600 B

1234567891011121314151617
  1. declare function isRegex(o: any): boolean;
  2. declare function isFunction(functionToCheck: any): any;
  3. declare function isPlainObject(a: any): boolean;
  4. declare function isUndefined(a: any): boolean;
  5. /**
  6. * According to Webpack docs, a "test" should be the following:
  7. *
  8. * - A string
  9. * - A RegExp
  10. * - A function
  11. * - An array of conditions (may be nested)
  12. * - An object of conditions (may be nested)
  13. *
  14. * https://webpack.js.org/configuration/module/#condition
  15. */
  16. declare function isSameCondition(a: any, b: any): boolean;
  17. export { isRegex, isFunction, isPlainObject, isUndefined, isSameCondition };