wonderful-panda/vue-tsx-support

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

Chapaev17 opened this issue · 0 comments

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.