@cclr/model 0.1.17 → 0.1.19
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/lib/type/index.d.ts +5 -4
- package/package.json +4 -4
package/lib/type/index.d.ts
CHANGED
|
@@ -143,10 +143,6 @@ declare const presetMiddlewareSync: TMiddleware[];
|
|
|
143
143
|
* Model 类
|
|
144
144
|
*/
|
|
145
145
|
declare const Model: <MS extends ModelsType>(models: MS) => ModelsApi<MS>;
|
|
146
|
-
/**
|
|
147
|
-
* Model 类
|
|
148
|
-
*/
|
|
149
|
-
declare const ModelSingle: <MT extends ModelType>(model: MT) => ModelsSingleApi<MT>;
|
|
150
146
|
|
|
151
147
|
interface IState {
|
|
152
148
|
value: TAny;
|
|
@@ -163,4 +159,9 @@ type TModelSimple<T extends IState['value']> = ModelsSingleApi<ModelType<{
|
|
|
163
159
|
*/
|
|
164
160
|
declare const ModelSimple: <T extends IState["value"]>(value: T) => TModelSimple<T>;
|
|
165
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Model 类
|
|
164
|
+
*/
|
|
165
|
+
declare const ModelSingle: <MT extends ModelType>(model: MT) => ModelsSingleApi<MT>;
|
|
166
|
+
|
|
166
167
|
export { Model, ModelSimple, ModelSingle, type ModelType, type ModelsApi, type ModelsSingleApi, type ModelsType, type TAction, type TActionMapApi, type TGetActionsType, type TGetStateType, type TMiddleware, type TSubscribesFun, gatter, gatterSync, handleModelMiddlewareConfig, logger, loggerSync, presetMiddleware, presetMiddlewareSync, publish, returnState, setter, tryCatch, tryCatchSync };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cclr/model",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "前端开发状态管理",
|
|
5
5
|
"author": "cclr <18843152354@163.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"g:test": "vitest run",
|
|
28
28
|
"g:build": "ccf build"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "8f3b61a1d4597514d1fe34d639be849f717bd2c4",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cclr/lang": "0.1.
|
|
33
|
-
"@cclr/utils": "0.1.
|
|
32
|
+
"@cclr/lang": "0.1.19",
|
|
33
|
+
"@cclr/utils": "0.1.19",
|
|
34
34
|
"immer": "^10.1.1"
|
|
35
35
|
}
|
|
36
36
|
}
|