Swaps the keys and values of an object (if applicable)
object
import {O} from 'ts-toolbelt' enum E { A = 'Av', B = 'Bv', C = 'Cv', D = 'Dv', X = 1 } type O = { A: 'Av' B: 'Bv' C: 'Cv' D: 'Dv' X: 1 } type test0 = O.Invert<typeof E> type test1 = O.Invert<O>
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.
Swaps the keys and values of an
object
(if applicable)