-
Notifications
You must be signed in to change notification settings - Fork 634
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
[CommandPalette] Generics not working well with items inside groups #2260
Labels
Comments
@yassilah Given the awesome work you did on generic types, would you have an idea on how to solve this as well? |
I added the item type inference but actually TS would still throw an error here because not all items have the 'id' prop, so you'd need to wrap it inside a |
This was referenced Oct 29, 2024
8 tasks
23 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction: https://play.vuejs.org/#eNqdVm1v2zYQ/itXbYATwC/Y2n3RnBTLVgRZgTZIDPRDVMCqdLbZUKRAUomN1P+9d5RlUa4dp/0QhHd87v3hyU/RP2U5fKgwiqOxzYwoHVh0VXmeKFGU2jj4VxdFqvLrVKJzCDOjC+gNR101u+j9nahMK+tgbnRVWjiDu6dEAYg8hh55dULNba/vVQ4LG8MdnwGeQKZfUBLq2uiZkNjrgyBXpBCDBRrNgh1UFk0P1t5BaHQhpCTX+40yg7lwgyw1+T7bD9qJmchSJwi83wMB5T7TW8wqI9xqv5XU2f0gk9oix2Xbz4la96HtCJdzoB18/0d/G+m/yjxS/nCDK6VlbsNsGPpnC32PymkFE/2ocBf2uoVNKFG0CJ8qZbPFLvBNC7xARf3LHLxHa2W3/wz9KwidOpQrBTd6kaqgZvobj2puEatIoGJLSWCSAMY7/Ipr8pwlUX1IIg8jYGMGv3G7BhLTnKZOQMqEFBSwgVJytW4oclj7RMh+1I27w2BSdhBRP3KWJjkT8+FXqxU9ED+6JMp0URJHzcfSkyaJ4nqofJdKqR//9zpnKty0imwWmN3v0X+1S9Yl0TWPwzxgEm3vXGrm6Orrd7cfcEnn7WWh80oS+pnLG7RaVpxjDbuoVE5pBzif7ZV/5tTJiX23dKhsUxQnysh64ElET5xadrD0Nt3XwzfejmZPXfxxUQS7RqZ+gq4eMy79xhHKoZmlGe7sniueso/nKfc2BusMJc4aK7ULFBT7qLtL5td4ct4+ydbd0QCbN0uayR2T/AXxaLeVdnzZhyZkTXBycbl14VYlwi2FqsGEPIOTks/UaR+SAtK+UTkuY1BV8QUNrE/h7BxStQqS8I668dktuQTiCqrckr9OTbDmYD6xHj0D2mttYIupyRYTNEUAP43rmIT3ey7AV8LfdTCcfC/uFLfVN4/58D3P4+CtM6nwX4BdgO9pd/mEH7mQfjCnTWdERuLltkX7CUMTPIBghnom199B3w9qao4zoTbzP8iJ85PTxo7n0trVc9s7y9roue2ai4dmf9IRHgYzbajEE8+9fk3BK2bTKZFqw0hqRnyPK4JNvWLw+1OLW0+DNdv1ybPYcLP1NvTv5HmXJHmrjm/yzn2AWKUFkqHf517z7dvGdSPV3OIYfNhgvcheWeb/Hd+Hvb+FKaXTiOuGmlOIw6ge1cod2DSkNJV0LC0Y+cmFqZWpor6KWZOZ5z+X+uqVJ8fdM/ky9Gi2DWiTqxc/73ToJ3r0yzF/cmjht73uSfN536Y84mjdSY+4nz/0+GWlNbvlWHUhri5wq3khAw5UMB4Fb3h7bk7d3yzr79xX83k=
The text was updated successfully, but these errors were encountered: