UNPKG

react-native-floating-action-menu

Version:

https://github.com/nicotroia/react-native-floating-action-menu.git

7 lines (6 loc) 254 B
/** * Useful for turning a string literal union type into an enum of sorts. * Every value in the union must be included, and both the key and value * must be equal to that value in the union. */ type TypeMap<T extends PropertyKey> = { [K in T]: T };