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 = {
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 ] ) {
You can’t perform that action at this time.
0 commit comments