{"version":3,"file":"type.cjs","sources":["../../../src/matchers/type.js"],"sourcesContent":["import { getMatcherResult, isArray, isObject, isString, isNumber, isBoolean, isFunction, isDate, isRegExp } from './utils.js';\n\nexport function toBeArray(received) {\n  return getMatcherResult(isArray(received), 'toBeArray', received);\n}\nexport function toBeObject(received) {\n  return getMatcherResult(isObject(received), 'toBeObject', received);\n}\nexport function toBeString(received) {\n  return getMatcherResult(typeof received === 'string' || received instanceof String, 'toBeString', received);\n}\nexport function toBeNumber(received) {\n  return getMatcherResult(typeof received === 'number', 'toBeNumber', received);\n}\nexport function toBeBoolean(received) {\n  return getMatcherResult(isBoolean(received), 'toBeBoolean', received);\n}\nexport function toBeFunction(received) {\n  return getMatcherResult(isFunction(received), 'toBeFunction', received);\n}\nexport function toBeDate(received) {\n  return getMatcherResult(isDate(received), 'toBeDate', received);\n}\nexport function toBeRegExp(received) {\n  return getMatcherResult(isRegExp(received), 'toBeRegExp', received);\n}\nexport function toBeInstanceOf(received, expected) {\n  return getMatcherResult(received instanceof expected, 'toBeInstanceOf', received, expected);\n}\n "],"names":["getMatcherResult","isArray","isObject","isBoolean","isFunction","isDate","isRegExp"],"mappings":";;;;AAEO,SAAS,SAAS,CAAC,QAAQ,EAAE;AACpC,EAAE,OAAOA,sBAAgB,CAACC,aAAO,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC;AACnE;AACO,SAAS,UAAU,CAAC,QAAQ,EAAE;AACrC,EAAE,OAAOD,sBAAgB,CAACE,cAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,QAAQ,CAAC;AACrE;AACO,SAAS,UAAU,CAAC,QAAQ,EAAE;AACrC,EAAE,OAAOF,sBAAgB,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,YAAY,MAAM,EAAE,YAAY,EAAE,QAAQ,CAAC;AAC7G;AACO,SAAS,UAAU,CAAC,QAAQ,EAAE;AACrC,EAAE,OAAOA,sBAAgB,CAAC,OAAO,QA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