{"version":3,"file":"validate.js","names":[],"sources":["esm/platform/barometer/validate.js"],"sourcesContent":["function assertBarometerListener(listener) {\n  if (typeof listener !== \"function\") {\n    throw new Error(\"Barometer.addListener: listener must be a function\");\n  }\n}\nfunction assertUpdateInterval(intervalMs) {\n  if (typeof intervalMs !== \"number\" || !Number.isFinite(intervalMs) || intervalMs < 0) {\n    throw new Error(\"Barometer.setUpdateInterval: interval must be a finite number at least 0\");\n  }\n}\nexport {\n  assertBarometerListener,\n  assertUpdateInterval\n};\n//# sourceMappingURL=validate.js.map\n"],"mappings":";AAAA,SAAS,wBAAwB,UAAU;CACzC,IAAI,OAAO,aAAa,YAAY;EAClC,MAAM,IAAI,MAAM,oDAAoD;CACtE;AACF;AACA,SAAS,qBAAqB,YAAY;CACxC,IAAI,OAAO,eAAe,YAAY,CAAC,OAAO,SAAS,UAAU,KAAK,aAAa,GAAG;EACpF,MAAM,IAAI,MAAM,0EAA0E;CAC5F;AACF"}