The
code works fine. The interface is clearly defined, but why is it initialized like this
The
code works fine. The interface is clearly defined, but why is it initialized like this
because you declare a page, but you only assign an object. If you have learned weak typing, you will know that field consistency does not mean type consistency
you should change this Page to class and then new out
vue init SimonZhangITer vue-typescript-template my-project templates commands create templates , , tsconfig.json tsconfig.json ...