ddan-js 3.6.0 → 3.6.1
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/bin/ddan-js.browser.js +1 -1
- package/bin/ddan-js.js +1 -1
- package/bin/ddan-js.mjs +1 -1
- package/bin/modules/map.d.ts +11 -0
- package/bin/tiny/utils.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function stringify(map: Map<any, any>): string | undefined;
|
|
2
|
+
declare function parse(json: string): Map<any, any> | undefined;
|
|
3
|
+
declare function deepStringify(map: Map<any, any>): string | undefined;
|
|
4
|
+
declare function deepParse(json: string): Map<any, any> | undefined;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
stringify: typeof stringify;
|
|
7
|
+
parse: typeof parse;
|
|
8
|
+
deepStringify: typeof deepStringify;
|
|
9
|
+
deepParse: typeof deepParse;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
package/bin/tiny/utils.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import Event from '../class/event';
|
|
2
2
|
declare const dUtil: {
|
|
3
3
|
Event: typeof Event;
|
|
4
|
+
map: {
|
|
5
|
+
stringify: (map: Map<any, any>) => string | undefined;
|
|
6
|
+
parse: (json: string) => Map<any, any> | undefined;
|
|
7
|
+
deepStringify: (map: Map<any, any>) => string | undefined;
|
|
8
|
+
deepParse: (json: string) => Map<any, any> | undefined;
|
|
9
|
+
};
|
|
4
10
|
includes: typeof import("../util/includes").default;
|
|
5
11
|
forof: (source: any, cb: (key: any, val: any) => void) => void;
|
|
6
12
|
singleton: <T>() => {
|