wonderful-panda / vue-tsx-support

TSX (JSX for TypeScript) support library for Vue
MIT License
578 stars 40 forks source link

Props typing not working when using `render` function in `babel-preset-vca-jsx` `component` #96

Closed Chapaev17 closed 2 years ago

Chapaev17 commented 2 years ago

When using a render function in a component function from babel-preset-vca-jsx typing only works inside the component. When I try to pass props to this component I get an error

No overload matches this call.
  Overload 3 of 3, '(options?: ComponentOptions<_TsxComponentInstanceV3<Vue & void, {}, PropsForOutside<{ shortTitle: string; title: string; ulr: string; }, "title" | "ulr">, unknown, unknown, unknown>, ... 4 more ..., DefaultProps> | undefined): never', gave the following error.
    Type 'string' is not assignable to type 'never'.

This error only appears when using CompositionComponentOptionsWithRender. With CompositionComponentOptions everything works fine.