Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 361ac25

Browse files
authored
Merge pull request #667 from kodadot/typescript-flex
Updated typescript to 4.4
2 parents e7322b6 + cdcec80 commit 361ac25

File tree

20 files changed

+27
-27
lines changed

20 files changed

+27
-27
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"sass": "^1.35.1",
8080
"sass-loader": "^10.2",
8181
"tslint": "^6.1.0",
82-
"typescript": "^3.8.3",
82+
"typescript": "^4.4.2",
8383
"vue-cli-plugin-i18n": "^1.0.1",
8484
"vue-debounce-decorator": "^1.0.1",
8585
"vue-template-compiler": "^2.6.12"

src/components/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
<script lang="ts">
124124
import { Component, Vue } from 'vue-property-decorator';
125-
import i18n from '@/i18n.ts';
125+
import i18n from '@/i18n';
126126
import { TranslateResult } from 'vue-i18n/types'
127127
128128
interface Menu {

src/components/Navbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ import { Component, Vue } from 'vue-property-decorator';
8383
import LocaleChanger from '@/components/shared/SwitchLocale.vue';
8484
import NavbarProfileDropdown from '@/components/rmrk/Profile/NavbarProfileDropdown.vue'
8585
import { getCurrentColor } from '@/colors'
86-
import i18n from '@/i18n.ts';
86+
import i18n from '@/i18n';
8787
8888
@Component({
8989
components: {

src/components/rmrk/Create/CreateCollection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default class CreateCollection extends Mixins(
254254
res => this.resolveStatus(res.status)
255255
)
256256
);
257-
} catch (e) {
257+
} catch (e: any) {
258258
showNotification(`[ERR] ${e}`, notificationTypes.danger);
259259
console.error(e);
260260
this.isLoading = false;

src/components/rmrk/Create/CreateToken.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export default class CreateToken extends Mixins(
316316
res => this.resolveStatus(res.status, true)
317317
)
318318
);
319-
} catch (e) {
319+
} catch (e: any) {
320320
showNotification(e.toString(), notificationTypes.danger);
321321
this.isLoading = false;
322322
}
@@ -360,7 +360,7 @@ export default class CreateToken extends Mixins(
360360
// TODO: upload meta to IPFS
361361
const metaHash = await pinJson(meta);
362362
return unSanitizeIpfsUrl(metaHash);
363-
} catch (e) {
363+
} catch (e: any) {
364364
throw new ReferenceError(e.message);
365365
}
366366
}
@@ -430,7 +430,7 @@ export default class CreateToken extends Mixins(
430430
res => this.resolveStatus(res.status)
431431
)
432432
);
433-
} catch (e) {
433+
} catch (e: any) {
434434
showNotification(e.message, notificationTypes.danger);
435435
}
436436
}

src/components/rmrk/Create/SimpleMint.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export default class SimpleMint extends Mixins(
398398
res => this.resolveStatus(res.status)
399399
)
400400
);
401-
} catch (e) {
401+
} catch (e: any) {
402402
showNotification(e.toString(), notificationTypes.danger);
403403
this.isLoading = false;
404404
}
@@ -498,7 +498,7 @@ export default class SimpleMint extends Mixins(
498498
}
499499
)
500500
);
501-
} catch (e) {
501+
} catch (e: any) {
502502
showNotification(e.message, notificationTypes.danger);
503503
}
504504
}
@@ -560,7 +560,7 @@ export default class SimpleMint extends Mixins(
560560
// TODO: upload meta to IPFS
561561
const metaHash = await pinJson(this.meta);
562562
return unSanitizeIpfsUrl(metaHash);
563-
} catch (e) {
563+
} catch (e: any) {
564564
throw new ReferenceError(e.message);
565565
}
566566
}

src/components/rmrk/Gallery/Gallery.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export default class Gallery extends Vue {
277277
}
278278
}
279279
});
280-
} catch (e) {
280+
} catch (e: any) {
281281
console.warn('[PREFETCH] Unable fo fetch', offset, e.message)
282282
} finally {
283283
if (offset <= prefetchLimit) {

src/components/shared/TxButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class TxButton extends Vue {
3535
const tx = await exec(account, password, callback, params);
3636
showNotification(execResultValue(tx), notificationTypes.success);
3737
this.handleProcessed(tx);
38-
} catch (e) {
38+
} catch (e: any) {
3939
showNotification(e, notificationTypes.danger);
4040
this.handleProcessed(e);
4141
}

src/components/subsocial/Comment.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export default class Comment extends Mixins(TransactionMixin) {
207207
));
208208
209209
210-
} catch (e) {
210+
} catch (e: any) {
211211
console.error(`[SUBSOCIAL] Unable to react ${this.postId} with reaction ${reaction},\nREASON: ${e}`)
212212
showNotification(e.message, notificationTypes.danger);
213213
this.isLoading = false;

src/components/subsocial/CreatePost.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default class CreatePost extends Mixins(TransactionMixin, AuthMixin) {
104104
}
105105
)
106106
);
107-
} catch (e) {
107+
} catch (e: any) {
108108
showNotification(`[POST] ${e.message}`, notificationTypes.warn);
109109
}
110110
}

0 commit comments

Comments
 (0)