inferred-types
Advanced tools
Comparing version 0.22.6 to 0.22.7
{ | ||
"name": "inferred-types", | ||
"version": "0.22.6", | ||
"version": "0.22.7", | ||
"description": "Functions which provide useful type inference on TS projects", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -8,2 +8,10 @@ import { SimplifyObject } from "../SimplifyObject"; | ||
* If `V` is not specified then it defaults to _any_ and therefore all KVs are preserved. | ||
* | ||
* ```ts | ||
* type Obj = { foo: "hello", bar: 42, baz: () => "world" }; | ||
* // { foo: number, bar: number, baz: number }; | ||
* type AllNumbers = DictChangeValue<Obj, number>; | ||
* // { foo: number } | ||
* type StringToBool = DictChangeValue<Obj, boolean, string> | ||
* ``` | ||
*/ | ||
@@ -10,0 +18,0 @@ export type DictChangeValue< |
Sorry, the diff of this file is too big to display
318705
8535