The problem with vue typescript

I would like to ask whether vue2.5 will not need this code in the future

declare module "*.vue" {
    import Vue from "vue";
    export default Vue;
}

I"ve seen many configuration tutorials require this, but official documents say

in Vue 2.5.0 +, we greatly improved the type declaration to use the default object-based (object-based) API. At the same time, some changes have been introduced

I still don"t know much about ts. Ask the boss to answer it for me

.
Mar.03,2021

try using babel-polyfill

Menu