@bouko/ts 0.3.9 → 0.4.0
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/types/generic.d.ts +2 -1
- package/package.json +2 -25
package/dist/types/generic.d.ts
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
* They are intended to facilitate type-safe handling
|
|
9
9
|
* of generic objects (ex. forms).
|
|
10
10
|
**/
|
|
11
|
-
export type StringMap = Record<string,
|
|
11
|
+
export type StringMap<T = string> = Record<string, T>;
|
|
12
|
+
export type ArrayMap<T = string> = Record<string, T[]>;
|
|
12
13
|
export type JsonMap = {
|
|
13
14
|
[key: string]: JsonValue | JsonValue[];
|
|
14
15
|
};
|
package/package.json
CHANGED
|
@@ -1,56 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
|
|
3
3
|
"name": "@bouko/ts",
|
|
4
|
-
|
|
5
|
-
"version": "0.3.9",
|
|
6
|
-
|
|
4
|
+
"version": "0.4.0",
|
|
7
5
|
"main": "./dist/index.js",
|
|
8
|
-
|
|
9
6
|
"types": "./dist/index.d.ts",
|
|
10
|
-
|
|
11
7
|
"license": "MIT",
|
|
12
|
-
|
|
13
8
|
"files": [
|
|
14
|
-
|
|
15
9
|
"dist"
|
|
16
|
-
|
|
17
10
|
],
|
|
18
|
-
|
|
19
11
|
"publishConfig": {
|
|
20
|
-
|
|
21
12
|
"access": "public"
|
|
22
|
-
|
|
23
13
|
},
|
|
24
|
-
|
|
25
14
|
"author": "",
|
|
26
|
-
|
|
27
15
|
"description": "",
|
|
28
|
-
|
|
29
16
|
"engines": {},
|
|
30
17
|
|
|
31
18
|
"scripts": {
|
|
32
|
-
|
|
33
19
|
"build": "tsc"
|
|
34
|
-
|
|
35
20
|
},
|
|
36
21
|
|
|
37
22
|
"dependencies": {
|
|
38
|
-
|
|
39
23
|
"@bouko/ts": "^0.3.5",
|
|
40
|
-
|
|
41
24
|
"chalk": "^5.6.0",
|
|
42
|
-
|
|
43
25
|
"zod": "^4.3.5"
|
|
44
|
-
|
|
45
26
|
},
|
|
46
27
|
|
|
47
28
|
"devDependencies": {
|
|
48
|
-
|
|
49
29
|
"@types/node": "^24.3.0",
|
|
50
|
-
|
|
51
30
|
"typescript": "^5.9.2"
|
|
52
|
-
|
|
53
31
|
}
|
|
54
32
|
|
|
55
|
-
}
|
|
56
|
-
|
|
33
|
+
}
|