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
letcomponent: Componentcomponent=defineComponent({props: {test: String,},setup(_,{ attrs, slots }){// @ts-expect-error should not be anyexpectType<[]>(attrs)// @ts-expect-error should not be anyexpectType<[]>(slots)}})
What is expected?
defineComponent to infer the options correctly
What is actually happening?
RawOptions is breaking the inference because defaults to {}
Link to minimal reproduction
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgYQuCA7AphmAaOAEywDNhtV1tc4BfOEqNOAcgDcBXLFgWACh+xAMYAbAIZQsDDhiExgmOFgAeYLHIAqATzUAeDQD4AFGzEiuALjgaAlFbYRghfvxFZ4QtJGowrlbzgw-J5UgXAAvESk5Fj+mIFGCPxwKXBgTGAAzlZJfKn5cDBYmb5wAMowUOQA5njJqbR1eamZ7hxgRgD6BEhiMJWZBJkiEDCZdDaI9QVwAPSzcAACYwC0Kmpya1BMUHCZABYQHCKEcBijcABGUmIYWtMF6+ow2noA2gC6xn0DNg-58yWqyemyw22ge0Ox1O53g1zgt3uzRmIJeOiwuk+xmGo0yf2RdH4tBsQA
Steps to reproduce
What is expected?
defineComponent
to infer the options correctlyWhat is actually happening?
RawOptions
is breaking the inference because defaults to{}
System Info
Any additional comments?
vuejs/test-utils#1510
The text was updated successfully, but these errors were encountered: