We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when using tsx, there is no intrinsic typing for class, style which are included in DefineComponent typing.
class
style
DefineComponent
may be we can add these typing at TSX, instead of extends them at each component's Props interface?
TSX
import type { PublicProps } from 'vue'; export declare function TSX<Properties extends {} = {}, Events extends {} = {}>(): <C extends VueCons<{}>>(cons: C) => new () => Omit<ComponentPublicInstance<InstanceType<C>["$props"] & Properties & { [index in keyof Events as `on${Capitalize<index & string>}`]: Events[index] extends Function ? Events[index] : (param: Events[index]) => any; }>, keyof Properties | keyof { [index in keyof Events as `on${Capitalize<index & string>}`]: Events[index] extends Function ? Events[index] : (param: Events[index]) => any; }> & InstanceType<C> // add extra attributes & { $props?: PublicProps };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when using tsx, there is no intrinsic typing for
class
,style
which are included inDefineComponent
typing.may be we can add these typing at
TSX
, instead of extends them at each component's Props interface?The text was updated successfully, but these errors were encountered: