You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting in 2.4.2 (works in 2.4.1), when passing props to mount whose type is a union, a type error is raised.
Type '{ foo: string; } | { foo: { bar: string; }; }' is not assignable to type 'VNodeProps & { __v_isVNode?: never; [Symbol.iterator]?: never; } & Record<string, any> & { foo: string; }'.
Type '{ foo: { bar: string; }; }' is not assignable to type 'VNodeProps & { __v_isVNode?: never; [Symbol.iterator]?: never; } & Record<string, any> & { foo: string; }'.
Type '{ foo: { bar: string; }; }' is not assignable to type '{ foo: string; }'.
Types of property 'foo' are incompatible.
Type '{ bar: string; }' is not assignable to type 'string'.(2322)
Describe the bug
Starting in 2.4.2 (works in 2.4.1), when passing props to
mount
whose type is a union, a type error is raised.To Reproduce
https://stackblitz.com/edit/github-wh8w7t?file=src%2Fcomponents%2F__tests__%2FHelloWorld.spec.ts
Expected behavior
A type error is not raised, as is the case in 2.4.1 and below.
Same repro with 2.4.1: https://stackblitz.com/edit/github-wh8w7t-gbvna2?file=src%2Fcomponents%2F__tests__%2FHelloWorld.spec.ts
Related information:
Additional context
The text was updated successfully, but these errors were encountered: