-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot determine prop from mapped type #10962
Labels
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue version
3.4.25
Link to minimal reproduction
https://play.vuejs.org/#eNqFUttu00AQ/ZVhVclFCrGgPAU3Eo2KgEpQQVQeWKQae2K23Zt21yHF+N87u07Sptcn+8yZnTkzczr23trxskU2YYWvnLABPIbWTrkWyhoXYGaUhYUzCrJxHkFMz95t+Q4cLqBfp0SOa64ro30A5Rs4jPx+9hGlNPDDOFm/yF5yXeRDO2pEIKCysgxICKBILSeVkf6VbA45e83ZGqqa4Jst9IrgAcGcHhb5rSpsxIInEQvRjC+80TRfF2tzVlFxIdF9tUGQSM4mkJjIlaTx7+cUC67F0SZe/cHq8oH4hV/FGGenDj26JXK25ULpGgwDffz9C67of0sqU7eSsp8gv6E3so0ah7SjVtck+1ZeUvspXUHoZu6PVwG13wwVhcbMPuVzRpeJe31s9Bu5B+O36R3XPW1xc/G7BgFZ6nibQGVo3+HKIhw5LC+tETp4OnvmVQb/IVN1+sgmGeNO4oeyCsZdFXOgHaCuPfjgaJoRnE2pRpL38wSE3ileejjf6+b9XjcrrQilFP+wOJn2578mcEbTaBK/bjUjn+zqut88i2bKRqBb9RtdcuTgX+uMjU9qXAiNpxGROXcKTvefMXMtlukHoOvWBXuSR0w+ULu+7a8ByEs06A==
Steps to reproduce
Create a mapped type like so:
What is expected?
Props receive the correct props definition during the runtime
What is actually happening?
The TS actually knows what the type is, if you observe the App.vue in the reproduction, it knows of
cols-lg cols-md cols-sm
existenceHowever, the runtime isn't able to generate the correct types. It believes the required types to be 'lg' |'md' | 'sm'
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: