justin-schroeder / vue-3.3-prop-unions

A demonstration of TypeScript issues when using prop unions in Vue 3.3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue 3.3+ w/ Prop Unions Reproduction

When attempting to use discriminated unions for props Vue does not have an overload.

Screenshot 2023-06-16 at 3 28 43 PM

Screenshot 2023-06-16 at 3 28 25 PM

About

A demonstration of TypeScript issues when using prop unions in Vue 3.3.


Languages

Language:CSS 48.1%Language:TypeScript 38.6%Language:HTML 13.3%