antd-solid 0.0.15 → 0.0.16
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/es/Command/createCommand.d.ts +1 -1
- package/package.json +12 -11
|
@@ -10,7 +10,7 @@ export interface BaseCommandIntance<P extends {} | undefined = undefined, R = vo
|
|
|
10
10
|
* @param component
|
|
11
11
|
* @param contextHolder 如果为 true,则会返回 getContextHolder
|
|
12
12
|
*/
|
|
13
|
-
declare function createCommand<P extends {} =
|
|
13
|
+
declare function createCommand<P extends {} | undefined = undefined, R = void>(component: Component<P extends {} ? P : {}>): BaseCommandIntance<P, R>;
|
|
14
14
|
declare function createCommand<P extends {} = {}, R = void>(component: Component<P>, contextHolder: true): BaseCommandIntance<P, R> & {
|
|
15
15
|
getContextHolder: () => JSXElement;
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-solid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"types": "es/index.d.ts",
|
|
8
8
|
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"docs:dev": "vitepress dev docs",
|
|
11
|
+
"docs:build": "node scripts/annotationNonProductionCode && vitepress build docs && node scripts/cancelAnnotationNonProductionCode",
|
|
12
|
+
"docs:preview": "vitepress preview docs",
|
|
13
|
+
"build": "rm -rf dist && rm -rf es && rm -rf css && NODE_ENV=production && npx rollup -c && npm run build:unocss",
|
|
14
|
+
"build:unocss": "npx unocss './src/**' -o css/index.css -m",
|
|
15
|
+
"test": "vitest",
|
|
16
|
+
"prepare": "husky install"
|
|
17
|
+
},
|
|
9
18
|
"devDependencies": {
|
|
10
19
|
"@iconify-json/ant-design": "^1.1.5",
|
|
11
20
|
"@rollup/plugin-babel": "^6.0.3",
|
|
@@ -72,13 +81,5 @@
|
|
|
72
81
|
"dist",
|
|
73
82
|
"es",
|
|
74
83
|
"css"
|
|
75
|
-
]
|
|
76
|
-
|
|
77
|
-
"docs:dev": "vitepress dev docs",
|
|
78
|
-
"docs:build": "node scripts/annotationNonProductionCode && vitepress build docs && node scripts/cancelAnnotationNonProductionCode",
|
|
79
|
-
"docs:preview": "vitepress preview docs",
|
|
80
|
-
"build": "rm -rf dist && rm -rf es && rm -rf css && NODE_ENV=production && npx rollup -c && npm run build:unocss",
|
|
81
|
-
"build:unocss": "npx unocss './src/**' -o css/index.css -m",
|
|
82
|
-
"test": "vitest"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
84
|
+
]
|
|
85
|
+
}
|