What does the shims-tsx.d.ts file do in a Vue-Typescript project?

后端 未结 2 1306
醉梦人生
醉梦人生 2021-02-05 00:25

When creating a Vue project with typescript, two declaration files are included: shims-vue.d.ts and shims.tsx.d.ts.

//shims-vue.d.ts

declare          


        
2条回答
  •  自闭症患者
    2021-02-05 01:27

    The first file helps your IDE to understand what a file ending in .vue is

    The second file allows you to use .tsx files while enabling jsx syntaxsupport in your IDE to write JSX-style typescript code.

提交回复
热议问题