@ptolemy2002/ts-utils 1.4.0 → 1.5.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/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ export type TAndOthers<T, K extends keyof any = PropertyKey> = Record<K, any> &
|
|
|
8
8
|
export type KeysMatching<T, V> = {
|
|
9
9
|
[K in keyof T]-?: T[K] extends V ? K : never;
|
|
10
10
|
}[keyof T];
|
|
11
|
+
export type KeysNotMatching<T, V> = {
|
|
12
|
+
[K in keyof T]-?: T[K] extends V ? never : K;
|
|
13
|
+
}[keyof T];
|
|
11
14
|
export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
12
15
|
export type AtLeastOne<T, U = {
|
|
13
16
|
[K in keyof T]: Pick<T, K>;
|