anux-common
Version:
[](https://travis-ci.com/Anupheaus/anux-common) [](https://www.codacy.com/app/Anuphea
19 lines (18 loc) • 493 B
TypeScript
import './object';
import { MapOf } from './global';
declare class MapExtensions<K, V> {
toArray(): [K, V][];
toKeysArray(): K[];
toValuesArray(): V[];
getOrSet(key: K, defaultValue: () => V): V;
}
declare class MapConstructorExtensions {
fromPlainObject<V>(object: MapOf<V>): Map<string, V>;
}
declare global {
interface Map<K, V> extends MapExtensions<K, V> {
}
interface MapConstructor extends MapConstructorExtensions {
}
}
export {};