{"version":3,"file":"valid-exclude.d.ts","sourceRoot":"","sources":["../../src/valid-exclude.ts"],"names":[],"mappings":";AAEA,wBAgBC","sourcesContent":["import fail from './fail.js'\nimport { TshyConfig } from './types.js'\nexport default (\n  d: any,\n): d is Exclude<TshyConfig['exclude'], undefined> => {\n  if (\n    !!d &&\n    Array.isArray(d) &&\n    d.length &&\n    !d.some(d => typeof d !== 'string')\n  ) {\n    return true\n  }\n  fail(\n    `tshy.exclude must be an array of string glob patterns if defined, ` +\n      `got: ${JSON.stringify(d)}`,\n  )\n  return process.exit(1)\n}\n"]}