@augment-vir/common 16.1.0 → 16.3.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.
@@ -8,3 +8,9 @@ export declare function isObject(input: any): input is NonNullable<object>;
8
8
  /** The input here must be serializable otherwise JSON parsing errors will be thrown */
9
9
  export declare function copyThroughJson<T>(input: T): T;
10
10
  export type PropertyValueType<T> = T[keyof T];
11
+ export type ExtractKeysWithMatchingValues<OriginalObject extends object, Matcher> = keyof {
12
+ [Prop in keyof OriginalObject as OriginalObject[Prop] extends Matcher ? Prop : never]: Prop;
13
+ };
14
+ export type ExcludeKeysWithMatchingValues<OriginalObject extends object, Matcher> = keyof {
15
+ [Prop in keyof OriginalObject as OriginalObject[Prop] extends Matcher ? never : Prop]: Prop;
16
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/common",
3
- "version": "16.1.0",
3
+ "version": "16.3.0",
4
4
  "homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common",
5
5
  "bugs": {
6
6
  "url": "https://github.com/electrovir/augment-vir/issues"