UNPKG

@auth0/cose

Version:
8 lines (7 loc) 232 B
/** * Creates a new map with the keys and values of the given map swapped. * * @param map {Map<K, V>} the original map * @returns {Map<V, K>} the new map */ export declare const reverseMap: <K, V>(map: Map<K, V>) => Map<V, K>;