Open maxschmeling opened 5 years ago
The keyof typeof ButtonType
part is necessary to make this backward compatible and not force every TypeScript based consumer of this component to switch to the enum type.
Feel free to just close this if you think it's not worth the change. But I like the enum, personally.
This is just a slight improvement to the TypeScript support.