UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

1 lines • 875 B
{"version":3,"file":"validate.js","names":[],"sources":["esm/platform/light-sensor/validate.js"],"sourcesContent":["function assertLightSensorListener(listener) {\n if (typeof listener !== \"function\") {\n throw new Error(\"LightSensor.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(\"LightSensor.setUpdateInterval: interval must be a finite number at least 0\");\n }\n}\nexport {\n assertLightSensorListener,\n assertUpdateInterval\n};\n//# sourceMappingURL=validate.js.map\n"],"mappings":";AAAA,SAAS,0BAA0B,UAAU;CAC3C,IAAI,OAAO,aAAa,YAAY;EAClC,MAAM,IAAI,MAAM,sDAAsD;CACxE;AACF;AACA,SAAS,qBAAqB,YAAY;CACxC,IAAI,OAAO,eAAe,YAAY,CAAC,OAAO,SAAS,UAAU,KAAK,aAAa,GAAG;EACpF,MAAM,IAAI,MAAM,4EAA4E;CAC9F;AACF"}