@augment-vir/common 26.3.2 → 26.3.3

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.
@@ -1,3 +1,4 @@
1
+ import { Writable } from 'type-fest';
1
2
  export type PartialAndNullable<T extends object> = {
2
3
  [Prop in keyof T]?: T[Prop] | null | undefined;
3
4
  };
@@ -7,7 +8,7 @@ export type PartialAndUndefined<T extends object> = {
7
8
  /** Checks if the input is non-null and an object. Includes arrays. */
8
9
  export declare function isObject(input: any): input is NonNullable<object>;
9
10
  /** The input here must be serializable otherwise JSON parsing errors will be thrown */
10
- export declare function copyThroughJson<T>(input: T): T;
11
+ export declare function copyThroughJson<T>(input: Readonly<T>): Writable<T>;
11
12
  export type PropertyValueType<T> = T[keyof T];
12
13
  export type ExtractKeysWithMatchingValues<OriginalObject extends object, Matcher> = keyof {
13
14
  [Prop in keyof OriginalObject as OriginalObject[Prop] extends Matcher ? Prop : never]: Prop;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/common",
3
- "version": "26.3.2",
3
+ "version": "26.3.3",
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"