Convert JS to TS

This commit is contained in:
seunghyunOh
2022-12-06 05:53:34 +09:00
parent 3e2ed62e50
commit a47decd31f
13 changed files with 304 additions and 222 deletions
@@ -0,0 +1,11 @@
// this function is temporary until. have to create error handling logic for localStorage and delete this.
export const tempLocalStorage = (key: string) => {
const value = localStorage.getItem(key);
if (value === null || value === "") {
console.warn("No value found in localStorage for key");
return "";
}
return value;
};