![]() ![]() The global JSX types may cause conflict with used together with other libraries that also needs JSX type inference, in particular React. This means TSX will work out of the box when Vue's type is available. Currently, Vue's types automatically registers Vue's JSX types globally. Similar to the transform, Vue's JSX also needs different type definitions. When using TSX, make sure to specify "jsx": "preserve" in tsconfig.json so that TypeScript leaves the JSX syntax intact for Vue JSX transform to process. Vue's type definition also provides type inference for TSX usage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |