@cowwoc/requirements
Version:
A fluent API for enforcing design contracts with automatic message generation.
15 lines (14 loc) • 389 B
text/typescript
/**
* Appends to a `string` map value.
*
* @param map - a map
* @param key - the map key
* @param value - the value to append
*/
declare function appendToValue<K>(map: Map<K, string>, key: K, value: string): void;
/**
* @param map - a map
* @returns the map sorted by its keys
*/
declare function sortByKeys<K, V>(map: Map<K, V>): Map<K, V>;
export { appendToValue, sortByKeys };