vue.ts
: Enhance TypeScript support for Vue.js
#9517
so1ve
started this conversation in
Show and tell
Replies: 1 comment
-
Wow, GREAT WORK! This tool must be recommended in the official documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My tweet: https://twitter.com/so1v3/status/1719263930072330584
Project: https://github.com/so1ve/vue.ts
This is a bunch of unplugins for various kinds of bundlers; it uses
@vue/language-core
under the hood.Packages:
@vue.ts/complex-types
: Support complex types for Vue's Macros (e.g.,defineProps
anddefineEmits
), although Vue's current compiler failed to resolve them.It fixes: global typescript interface cannot be used by defineProps #8612, Error: [@vue/compiler-sfc] Failed to resolve index type into finite keys #8286, v3.3 extending imported Props from alias-imported component throws compiler-error #8348, How to import interface for defineProps #4294, @vue/compiler-sfc cannot build <script setup> components that use generic discriminated union props #8468.
It supports Vue 2.7, which means you can use imported types, although Vue 2.7 doesn't support it yet.
@vue.ts/tsx-auto-props
: Automatically specifies props to functional components written in TSX - something Vue's compiler currently doesn't do.Beta Was this translation helpful? Give feedback.
All reactions