one
Version:
One is a React framework for web, iOS, and Android apps.
1 lines • 1.02 kB
Source Map (JSON)
{"version":3,"file":"validate.js","names":[],"sources":["esm/platform/keep-awake/validate.js"],"sourcesContent":["function assertKeepAwakeEnabled(value) {\n if (typeof value !== \"boolean\") {\n throw new Error(\"KeepAwake.setEnabled: enabled must be a boolean\");\n }\n}\nconst keepAwakeDefaultTag = \"ExpoKeepAwakeDefaultTag\";\nfunction assertKeepAwakeTag(value, owner) {\n if (value !== void 0 && typeof value !== \"string\") {\n throw new Error(`KeepAwake.${owner}: tag must be a string`);\n }\n}\nfunction normalizeKeepAwakeTag(value) {\n return value ?? keepAwakeDefaultTag;\n}\nexport {\n assertKeepAwakeEnabled,\n assertKeepAwakeTag,\n keepAwakeDefaultTag,\n normalizeKeepAwakeTag\n};\n//# sourceMappingURL=validate.js.map\n"],"mappings":";AAAA,SAAS,uBAAuB,OAAO;CACrC,IAAI,OAAO,UAAU,WAAW;EAC9B,MAAM,IAAI,MAAM,iDAAiD;CACnE;AACF;AACA,MAAM,sBAAsB;AAC5B,SAAS,mBAAmB,OAAO,OAAO;CACxC,IAAI,UAAU,KAAK,KAAK,OAAO,UAAU,UAAU;EACjD,MAAM,IAAI,MAAM,aAAa,MAAM,uBAAuB;CAC5D;AACF;AACA,SAAS,sBAAsB,OAAO;CACpC,OAAO;AACT"}