Skip to content

Commit 58596f0

Browse files
committed
fix auth types
1 parent 4f45889 commit 58596f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/services/auth/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ export const auth = {
211211
* @returns {boolean} success/failure flag
212212
*/
213213
setUserInfo(
214-
value = '',
215-
toStorage = APP_PERSIST_STORES_TYPES[0],
216-
userInfoKey = USER_INFO
214+
value: string = '',
215+
toStorage:Storage = APP_PERSIST_STORES_TYPES[0],
216+
userInfoKey:UserInfoKey = USER_INFO
217217
): any {
218218
if (!value || value.length <= 0) {
219219
return;
@@ -235,11 +235,11 @@ export const auth = {
235235
/**
236236
* delete userInfo
237237
*
238-
* @param {any} [userInfoKey='userInfo'] token key
238+
* @param {string} [userInfoKey='userInfo'] token key
239239
* @returns {bool} success/failure flag
240240
*/
241241
clearUserInfo(
242-
userInfoKey = USER_INFO
242+
userInfoKey: UserInfoKey = USER_INFO
243243
): any {
244244
// localStorage:
245245
if (localStorage && localStorage[userInfoKey]) {

0 commit comments

Comments
 (0)