Created
November 4, 2021 01:06
-
-
Save mathias5r/bd14cc3269b193499d84a8d5e708d371 to your computer and use it in GitHub Desktop.
using generic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type MyListItemProps<T> = { | |
| text: string; | |
| data: T; | |
| }; | |
| type MyListProps<T> = { | |
| items: MyListItemProps<T>[]; | |
| onItemSelected: (item: MyListItemProps<T>) => void; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment