@ts-common/string-map
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -13,5 +13,7 @@ import { Tuple2 } from "@ts-common/tuple"; | ||
} | ||
export declare type PartialStringMap<K extends string, V> = { | ||
readonly [k in K]: V; | ||
}; | ||
export declare type PartialStringMap<T> = { | ||
readonly [k in keyof T & string]: T[k]; | ||
} & object; | ||
export declare type Values<T> = T[keyof T & string]; | ||
export declare const toStringMap: <T extends PartialStringMap<T>>(v: T) => StringMap<T[keyof T & string]>; | ||
export interface MutableStringMap<T> { | ||
@@ -18,0 +20,0 @@ [key: string]: T | undefined; |
@@ -9,2 +9,3 @@ "use strict"; | ||
exports.entryValue = (e) => e[1 /* Value */]; | ||
exports.toStringMap = (v) => v; | ||
exports.allKeys = (input) => { | ||
@@ -11,0 +12,0 @@ function* iterator() { |
{ | ||
"name": "@ts-common/string-map", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "String Map", | ||
@@ -42,5 +42,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@ts-common/iterator": "0.0.33", | ||
"@ts-common/iterator": "0.0.35", | ||
"@ts-common/tuple": "0.0.0" | ||
} | ||
} |
16746
83
+ Added@ts-common/iterator@0.0.35(transitive)
- Removed@ts-common/iterator@0.0.33(transitive)
Updated@ts-common/iterator@0.0.35