@ztimson/utils 0.22.2 → 0.22.4

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/objects.d.ts CHANGED
@@ -117,10 +117,10 @@ export declare function mixin(target: any, constructors: any[]): void;
117
117
  /**
118
118
  * Parse JSON but return the original string if it fails
119
119
  *
120
- * @param {string} json JSON string to parse
120
+ * @param {any} json JSON string to parse
121
121
  * @return {string | T} Object if successful, original string otherwise
122
122
  */
123
- export declare function JSONAttemptParse<T>(json: string): T | string;
123
+ export declare function JSONAttemptParse<T1, T2>(json: T2): T1 | T2;
124
124
  /**
125
125
  * Convert an object to a JSON string avoiding any circular references.
126
126
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.22.2",
3
+ "version": "0.22.4",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",