misc: JSON.parse 중 any인 것에 type 지정
This commit is contained in:
@@ -39,7 +39,7 @@ function getToken(): [number, string] | undefined {
|
||||
if (!trialToken) {
|
||||
return;
|
||||
}
|
||||
const tokenItems = JSON.parse(trialToken);
|
||||
const tokenItems = JSON.parse(trialToken) as [number, [number, string], string];
|
||||
if (tokenItems[0] != TOKEN_VERSION) {
|
||||
console.log(tokenItems);
|
||||
resetToken();
|
||||
|
||||
Reference in New Issue
Block a user