Skip to content

Commit

Permalink
Refactor LOCAL_STORAGE_KEY to use TypeScript enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Dec 29, 2024
1 parent ff5da99 commit 7ac39ee
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/**
* Enum of `window.localStorage` keys.
*/
const LOCAL_STORAGE_KEY = Object.freeze({
THEME: "theme",
});
enum LOCAL_STORAGE_KEY {
THEME = "theme",
}

export default LOCAL_STORAGE_KEY;

0 comments on commit 7ac39ee

Please sign in to comment.