@ztimson/utils 0.23.0 → 0.23.2
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.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/dist/objects.d.ts +7 -0
- package/package.json +1 -1
package/dist/objects.d.ts
CHANGED
|
@@ -121,6 +121,13 @@ export declare function mixin(target: any, constructors: any[]): void;
|
|
|
121
121
|
* @return {string | T} Object if successful, original string otherwise
|
|
122
122
|
*/
|
|
123
123
|
export declare function JSONAttemptParse<T1, T2>(json: T2): T1 | T2;
|
|
124
|
+
/**
|
|
125
|
+
* Stringifies objects & skips primitives
|
|
126
|
+
*
|
|
127
|
+
* @param {any} obj Object to convert to serializable value
|
|
128
|
+
* @return {string | T} Serialized value
|
|
129
|
+
*/
|
|
130
|
+
export declare function JSONSerialize<T1>(obj: T1): T1 | string;
|
|
124
131
|
/**
|
|
125
132
|
* Convert an object to a JSON string avoiding any circular references.
|
|
126
133
|
*
|