Skip to content

Commit

Permalink
fix key types
Browse files Browse the repository at this point in the history
  • Loading branch information
arkamali authored Mar 8, 2024
1 parent 9bfc764 commit 4c3e76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function has(key: string) {
* Get Expire Time
* @param key
*/
function getExpireTime(key) {
function getExpireTime(key: string) {
// browser support ?
if (!window.localStorage) {
return null;
Expand All @@ -132,7 +132,7 @@ function getExpireTime(key) {
* Get Remain Time
* @param key
*/
function getRemainTime(key){
function getRemainTime(key: string){
if(getExpireTime(key)) {
return Math.round((getExpireTime(key) - new Date().getTime()) / 1000)
} else {
Expand Down

0 comments on commit 4c3e76d

Please sign in to comment.