You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.3 KiB

{"ast":null,"code":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport AsyncStorage from \"@react-native-async-storage/async-storage\";\nexport var deleteFavoriteCity = function () {\n var _ref = _asyncToGenerator(function* () {\n try {\n yield AsyncStorage.removeItem('favorite_city');\n } catch (e) {\n console.log(\"An error occurred\", e);\n }\n });\n return function deleteFavoriteCity() {\n return _ref.apply(this, arguments);\n };\n}();","map":{"version":3,"names":["AsyncStorage","deleteFavoriteCity","removeItem","e","console","log"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/asyncStorange/deleteFavoriteCityStorage.ts"],"sourcesContent":["import AsyncStorage from \"@react-native-async-storage/async-storage\";\n\nexport const deleteFavoriteCity = async () => {\n try {\n await AsyncStorage.removeItem('favorite_city')\n } catch(e) {\n console.log(\"An error occurred\", e);\n }\n }"],"mappings":";AAAA,OAAOA,YAAY,MAAM,2CAA2C;AAEpE,OAAO,IAAMC,kBAAkB;EAAA,6BAAG,aAAY;IAC1C,IAAI;MACF,MAAMD,YAAY,CAACE,UAAU,CAAC,eAAe,CAAC;IAChD,CAAC,CAAC,OAAMC,CAAC,EAAE;MACTC,OAAO,CAACC,GAAG,CAAC,mBAAmB,EAAEF,CAAC,CAAC;IACrC;EACF,CAAC;EAAA,gBANUF,kBAAkB;IAAA;EAAA;AAAA,GAM5B"},"metadata":{},"sourceType":"module"}