Created
June 21, 2018 22:35
-
-
Save micahgodbolt/89b175d44738260ad30bfeafbff29e00 to your computer and use it in GitHub Desktop.
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
interface IMenu { | |
stuff?: any; | |
items: string[]; | |
} | |
interface IButton { | |
... | |
menuProps?: IMenu | |
} | |
interface IMenuBar { | |
overflowButtonProps?: IButton // but menuProps should be Partial<IMenu> because IMenuBar provides required items | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This isn't super elegant, but it seems to do the trick for the stated use case.