@ptolemy2002/ts-utils 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -41,3 +41,6 @@ export declare function valueConditionMatches<T>(value: T, condition: OptionalVa
|
|
|
41
41
|
export type Rename<T, K extends keyof T, N extends string> = Pick<T, Exclude<keyof T, K>> & {
|
|
42
42
|
[P in N]: T[K];
|
|
43
43
|
};
|
|
44
|
+
export type ValuesIntersection<T> = ValueOf<{
|
|
45
|
+
[K in keyof T]: (x: T[K]) => void;
|
|
46
|
+
}> extends (x: infer I) => void ? I : never;
|