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>
Swaps the keys and values of an Object (if applicable)