@ztimson/utils 0.22.2 → 0.22.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.
- package/dist/csv.d.ts +1 -1
- package/dist/index.cjs +7 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -14
- package/dist/index.mjs.map +1 -1
- package/dist/objects.d.ts +2 -2
- package/package.json +1 -1
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 {
|
|
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<
|
|
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
|
*
|