File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -211,9 +211,9 @@ export const auth = {
211
211
* @returns {boolean } success/failure flag
212
212
*/
213
213
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
217
217
) : any {
218
218
if ( ! value || value . length <= 0 ) {
219
219
return ;
@@ -235,11 +235,11 @@ export const auth = {
235
235
/**
236
236
* delete userInfo
237
237
*
238
- * @param {any } [userInfoKey='userInfo'] token key
238
+ * @param {string } [userInfoKey='userInfo'] token key
239
239
* @returns {bool } success/failure flag
240
240
*/
241
241
clearUserInfo (
242
- userInfoKey = USER_INFO
242
+ userInfoKey : UserInfoKey = USER_INFO
243
243
) : any {
244
244
// localStorage:
245
245
if ( localStorage && localStorage [ userInfoKey ] ) {
You can’t perform that action at this time.
0 commit comments