@lytjs/store 4.1.0 → 5.0.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/README.md +303 -0
- package/dist/index.cjs +1 -1
- package/dist/types/create-store.d.ts +27 -0
- package/dist/types/create-store.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/tsconfig.tsbuildinfo +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# @lytjs/store
|
|
2
|
+
|
|
3
|
+
Lyt.js 状态管理 - Pinia 风格的简单直观的状态管理库。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @lytjs/store
|
|
9
|
+
|
|
10
|
+
# 或使用 pnpm
|
|
11
|
+
pnpm add @lytjs/store
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 特性
|
|
15
|
+
|
|
16
|
+
- 🚀 DevTools 支持
|
|
17
|
+
- 🔄 热模块替换 (HMR)
|
|
18
|
+
- 📦 插件系统
|
|
19
|
+
- 🎯 TypeScript 友好
|
|
20
|
+
- 🔌 零运行时依赖
|
|
21
|
+
- 💾 可通过插件支持持久化
|
|
22
|
+
|
|
23
|
+
## 快速开始
|
|
24
|
+
|
|
25
|
+
```javascript
|
|
26
|
+
import { defineStore } from '@lytjs/store';
|
|
27
|
+
|
|
28
|
+
// 1. 定义 Store
|
|
29
|
+
export const useCounterStore = defineStore('counter', {
|
|
30
|
+
state: () => ({
|
|
31
|
+
count: 0,
|
|
32
|
+
name: 'Lyt.js'
|
|
33
|
+
}),
|
|
34
|
+
getters: {
|
|
35
|
+
doubleCount: (state) => state.count * 2
|
|
36
|
+
},
|
|
37
|
+
actions: {
|
|
38
|
+
increment() {
|
|
39
|
+
this.count++;
|
|
40
|
+
},
|
|
41
|
+
async fetchData() {
|
|
42
|
+
const res = await api.get('/data');
|
|
43
|
+
this.data = res.data;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// 2. 在组件中使用
|
|
49
|
+
import { useCounterStore } from './store';
|
|
50
|
+
|
|
51
|
+
const counter = useCounterStore();
|
|
52
|
+
|
|
53
|
+
counter.increment();
|
|
54
|
+
console.log(counter.count);
|
|
55
|
+
console.log(counter.doubleCount);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 组合式 Store
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
import { defineStore } from '@lytjs/store';
|
|
62
|
+
import { ref, computed } from '@lytjs/reactivity';
|
|
63
|
+
|
|
64
|
+
export const useCounterStore = defineStore('counter', () => {
|
|
65
|
+
const count = ref(0);
|
|
66
|
+
const name = ref('Lyt.js');
|
|
67
|
+
const doubleCount = computed(() => count.value * 2);
|
|
68
|
+
|
|
69
|
+
function increment() {
|
|
70
|
+
count.value++;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return { count, name, doubleCount, increment };
|
|
74
|
+
});
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 核心概念
|
|
78
|
+
|
|
79
|
+
### State
|
|
80
|
+
|
|
81
|
+
```javascript
|
|
82
|
+
export const useStore = defineStore('main', {
|
|
83
|
+
state: () => ({
|
|
84
|
+
counter: 0,
|
|
85
|
+
user: null
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Getters
|
|
91
|
+
|
|
92
|
+
```javascript
|
|
93
|
+
export const useStore = defineStore('main', {
|
|
94
|
+
state: () => ({ counter: 0 }),
|
|
95
|
+
getters: {
|
|
96
|
+
doubleCount: (state) => state.counter * 2,
|
|
97
|
+
doublePlusOne() {
|
|
98
|
+
return this.doubleCount + 1;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Actions
|
|
105
|
+
|
|
106
|
+
```javascript
|
|
107
|
+
export const useStore = defineStore('main', {
|
|
108
|
+
state: () => ({ counter: 0 }),
|
|
109
|
+
actions: {
|
|
110
|
+
increment() {
|
|
111
|
+
this.counter++;
|
|
112
|
+
},
|
|
113
|
+
randomizeCounter() {
|
|
114
|
+
this.counter = Math.round(100 * Math.random());
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## 在 Setup 中使用
|
|
121
|
+
|
|
122
|
+
```javascript
|
|
123
|
+
import { useCounterStore } from '@/stores/counter';
|
|
124
|
+
import { storeToRefs } from '@lytjs/store';
|
|
125
|
+
|
|
126
|
+
export default {
|
|
127
|
+
setup() {
|
|
128
|
+
const store = useCounterStore();
|
|
129
|
+
|
|
130
|
+
// 直接读取
|
|
131
|
+
store.increment();
|
|
132
|
+
|
|
133
|
+
// 解构,保持响应式
|
|
134
|
+
const { count, doubleCount } = storeToRefs(store);
|
|
135
|
+
const { increment } = store;
|
|
136
|
+
|
|
137
|
+
return { count, doubleCount, increment };
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## 订阅 State
|
|
143
|
+
|
|
144
|
+
```javascript
|
|
145
|
+
const store = useStore();
|
|
146
|
+
|
|
147
|
+
// 订阅 state 的变化
|
|
148
|
+
const unsubscribe = store.$subscribe((mutation, state) => {
|
|
149
|
+
console.log(mutation);
|
|
150
|
+
localStorage.setItem('cart', JSON.stringify(state));
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
// 订阅 actions 的调用
|
|
154
|
+
const unsubscribeAction = store.$onAction(({ name, after, onError }) => {
|
|
155
|
+
console.log(`Action ${name} called`);
|
|
156
|
+
|
|
157
|
+
after((result) => {
|
|
158
|
+
console.log(`Action ${name} finished with result:`, result);
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
onError((error) => {
|
|
162
|
+
console.error(`Action ${name} failed:`, error);
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## 插件
|
|
168
|
+
|
|
169
|
+
```javascript
|
|
170
|
+
import { createPinia } from '@lytjs/store';
|
|
171
|
+
|
|
172
|
+
const pinia = createPinia();
|
|
173
|
+
|
|
174
|
+
// 持久化插件示例
|
|
175
|
+
function localStoragePlugin(context) {
|
|
176
|
+
const { store } = context;
|
|
177
|
+
|
|
178
|
+
const savedState = localStorage.getItem(store.$id);
|
|
179
|
+
if (savedState) {
|
|
180
|
+
store.$patch(JSON.parse(savedState));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
store.$subscribe((mutation, state) => {
|
|
184
|
+
localStorage.setItem(store.$id, JSON.stringify(state));
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
pinia.use(localStoragePlugin);
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## DevTools
|
|
192
|
+
|
|
193
|
+
```javascript
|
|
194
|
+
import { createPinia } from '@lytjs/store';
|
|
195
|
+
|
|
196
|
+
const pinia = createPinia();
|
|
197
|
+
|
|
198
|
+
// 启用 DevTools
|
|
199
|
+
pinia.use(({ store }) => {
|
|
200
|
+
store.$onAction(({ name, after }) => {
|
|
201
|
+
after(() => {
|
|
202
|
+
console.log(`[Store] ${name}`);
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## 示例
|
|
209
|
+
|
|
210
|
+
### 完整示例
|
|
211
|
+
|
|
212
|
+
```javascript
|
|
213
|
+
import { defineStore } from '@lytjs/store';
|
|
214
|
+
|
|
215
|
+
export const useUserStore = defineStore('user', {
|
|
216
|
+
state: () => ({
|
|
217
|
+
user: null,
|
|
218
|
+
isAuthenticated: false,
|
|
219
|
+
token: null
|
|
220
|
+
}),
|
|
221
|
+
|
|
222
|
+
getters: {
|
|
223
|
+
userName: (state) => state.user?.name,
|
|
224
|
+
isLoggedIn: (state) => state.isAuthenticated
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
actions: {
|
|
228
|
+
async login(credentials) {
|
|
229
|
+
try {
|
|
230
|
+
const response = await api.post('/login', credentials);
|
|
231
|
+
this.user = response.data.user;
|
|
232
|
+
this.token = response.data.token;
|
|
233
|
+
this.isAuthenticated = true;
|
|
234
|
+
localStorage.setItem('token', this.token);
|
|
235
|
+
} catch (error) {
|
|
236
|
+
console.error('Login failed:', error);
|
|
237
|
+
throw error;
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
logout() {
|
|
242
|
+
this.user = null;
|
|
243
|
+
this.token = null;
|
|
244
|
+
this.isAuthenticated = false;
|
|
245
|
+
localStorage.removeItem('token');
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### 组合式 API 示例
|
|
252
|
+
|
|
253
|
+
```javascript
|
|
254
|
+
import { defineStore } from '@lytjs/store';
|
|
255
|
+
import { ref, computed } from '@lytjs/reactivity';
|
|
256
|
+
|
|
257
|
+
export const useTodoStore = defineStore('todo', () => {
|
|
258
|
+
const todos = ref([]);
|
|
259
|
+
|
|
260
|
+
const completedTodos = computed(() =>
|
|
261
|
+
todos.value.filter(todo => todo.completed)
|
|
262
|
+
);
|
|
263
|
+
|
|
264
|
+
const pendingTodos = computed(() =>
|
|
265
|
+
todos.value.filter(todo => !todo.completed)
|
|
266
|
+
);
|
|
267
|
+
|
|
268
|
+
function addTodo(text) {
|
|
269
|
+
todos.value.push({
|
|
270
|
+
id: Date.now(),
|
|
271
|
+
text,
|
|
272
|
+
completed: false
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function toggleTodo(id) {
|
|
277
|
+
const todo = todos.value.find(t => t.id === id);
|
|
278
|
+
if (todo) {
|
|
279
|
+
todo.completed = !todo.completed;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return { todos, completedTodos, pendingTodos, addTodo, toggleTodo };
|
|
284
|
+
});
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
## 性能
|
|
288
|
+
|
|
289
|
+
- 轻量级,零运行时依赖
|
|
290
|
+
- 基于 Proxy 的响应式系统
|
|
291
|
+
- 高效的订阅机制
|
|
292
|
+
|
|
293
|
+
## 兼容性
|
|
294
|
+
|
|
295
|
+
- Node.js >= 18.0.0
|
|
296
|
+
- Chrome 64+
|
|
297
|
+
- Firefox 63+
|
|
298
|
+
- Safari 12+
|
|
299
|
+
- Edge 79+
|
|
300
|
+
|
|
301
|
+
## License
|
|
302
|
+
|
|
303
|
+
MIT
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var x=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var V=Object.prototype.hasOwnProperty;var W=(o,t)=>{for(var S in t)x(o,S,{get:t[S],enumerable:!0})},F=(o,t,S,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of L(t))!V.call(o,c)&&c!==S&&x(o,c,{get:()=>t[c],enumerable:!(f=P(t,c))||f.enumerable});return o};var H=o=>F(x({},"__esModule",{value:!0}),o);var K={};W(K,{clearAllStores:()=>C,createStore:()=>w,getStore:()=>O,getStoreIds:()=>j});module.exports=H(K);var y=require("@lytjs/reactivity"),i=require("@lytjs/common"),l=new Map;function O(o){return l.get(o)}function w(o,t={}){if(l.has(o))return()=>l.get(o);let S=typeof t.state=="function"?t.state():t.state||{},f={};if(t.modules)for(let e of Object.keys(t.modules)){let n=t.modules[e],r=typeof n.state=="function"?n.state():n.state||{};f[e]={...r}}let c={...S,...f},a=(0,y.reactive)({...c}),m={};if(t.getters)for(let e of Object.keys(t.getters)){let n=t.getters[e],r=(0,y.computed)(()=>n(a));Object.defineProperty(m,e,{get(){return r.value},enumerable:!0})}if(t.modules)for(let e of Object.keys(t.modules)){let n=t.modules[e];if(n.getters)for(let r of Object.keys(n.getters)){let s=n.getters[r],v=`${e}/${r}`,R=(0,y.computed)(()=>{let A=a[e];return s(A)});Object.defineProperty(m,v,{get(){return R.value},enumerable:!0})}}let $={},g=[];if(t.actions)for(let e of Object.keys(t.actions)){let n=t.actions[e];$[e]=function(...r){for(let s of g)s({name:e,args:r});return n.apply(b,r)}}if(t.modules)for(let e of Object.keys(t.modules)){let n=t.modules[e];if(n.actions)for(let r of Object.keys(n.actions)){let s=n.actions[r],v=`${e}/${r}`;$[v]=function(...R){for(let A of g)A({name:v,args:R});return s.apply(b,R)}}}let k=new i.SubscriptionManager,d=!1,p=[];function h(e){k.notify([e,a])}let u=null;function I(){if(u||d)return;let e=(0,i.createSnapshot)(a);u=(0,y.watch)(a,()=>{let n=(0,i.createSnapshot)(a),r=(0,i.diffObjects)(e,n);for(let s in r.added)h({storeId:o,type:"add",key:s,newValue:r.added[s]});for(let s in r.removed)h({storeId:o,type:"delete",key:s,oldValue:r.removed[s]});for(let s in r.changed)h({storeId:o,type:"set",key:s,newValue:r.changed[s].new,oldValue:r.changed[s].old});e=n},{deep:!0}),p.push(u)}function M(){if(!k.hasSubscribers()&&u){u();let e=p.indexOf(u);e!==-1&&p.splice(e,1),u=null}}let b={$id:o,get state(){return a},get getters(){return m},get actions(){return $},$expose(){return{state:a,getters:m}},$reset(){if(d)return;let e=Object.keys(a),n=Object.keys(c);for(let r of n)a[r]=c[r];for(let r of e)n.includes(r)||delete a[r]},$subscribe(e){if(d)return()=>{};let n=k.subscribe(([r,s])=>{e(r,s)});return I(),()=>{n(),M()}},$dispose(){if(!d){for(let e of p)e();p.length=0,u=null,k.clear(),l.delete(o),d=!0}},$patch(e){d||((0,i.isFunction)(e)?e(a):(0,i.mergeObjects)(a,e))},use(e){if(d)return()=>{};let n=e.install(b);return()=>{typeof n=="function"&&n()}},$onAction(e){return d?()=>{}:(g.push(e),()=>{let n=g.indexOf(e);n!==-1&&g.splice(n,1)})}};return l.set(o,b),()=>b}function j(){return Array.from(l.keys())}function C(){for(let[o,t]of l)t.$dispose();l.clear()}
|
|
1
|
+
"use strict";var x=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var V=Object.prototype.hasOwnProperty;var W=(o,t)=>{for(var S in t)x(o,S,{get:t[S],enumerable:!0})},F=(o,t,S,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of L(t))!V.call(o,c)&&c!==S&&x(o,c,{get:()=>t[c],enumerable:!(f=P(t,c))||f.enumerable});return o};var H=o=>F(x({},"__esModule",{value:!0}),o);var K={};W(K,{clearAllStores:()=>C,createStore:()=>w,getStore:()=>O,getStoreIds:()=>j});module.exports=H(K);var y=require("@lytjs/reactivity"),i=require("@lytjs/common"),l=new Map;function O(o){return l.get(o)}function w(o,t={}){if(l.has(o))return()=>l.get(o);let S=typeof t.state=="function"?t.state():t.state||{},f={};if(t.modules)for(let e of Object.keys(t.modules)){let n=t.modules[e],r=typeof n.state=="function"?n.state():n.state||{};f[e]={...r}}let c={...S,...f},a=(0,y.reactive)({...c}),m={};if(t.getters)for(let e of Object.keys(t.getters)){let n=t.getters[e],r=(0,y.computed)(()=>n(a));Object.defineProperty(m,e,{get(){return r.value},enumerable:!0})}if(t.modules)for(let e of Object.keys(t.modules)){let n=t.modules[e];if(n.getters)for(let r of Object.keys(n.getters)){let s=n.getters[r],v=`${e}/${r}`,R=(0,y.computed)(()=>{let A=a[e];return s(A)});Object.defineProperty(m,v,{get(){return R.value},enumerable:!0})}}let $={},g=[];if(t.actions)for(let e of Object.keys(t.actions)){let n=t.actions[e];$[e]=function(...r){for(let s of g)s({name:e,args:r});return n.apply(b,r)}}if(t.modules)for(let e of Object.keys(t.modules)){let n=t.modules[e];if(n.actions)for(let r of Object.keys(n.actions)){let s=n.actions[r],v=`${e}/${r}`;$[v]=function(...R){for(let A of g)A({name:v,args:R});return s.apply(b,R)}}}let k=new i.SubscriptionManager,d=!1,p=[];function h(e){k.notify([e,a])}let u=null;function I(){if(u||d)return;let e=(0,i.createSnapshot)(a);u=(0,y.watch)(a,()=>{let n=(0,i.createSnapshot)(a),r=(0,i.diffObjects)(e,n);for(let s in r.added)h({storeId:o,type:"add",key:s,newValue:r.added[s]});for(let s in r.removed)h({storeId:o,type:"delete",key:s,oldValue:r.removed[s]});for(let s in r.changed)h({storeId:o,type:"set",key:s,newValue:r.changed[s].new,oldValue:r.changed[s].old});e=n},{deep:!0}),p.push(u)}function M(){if(!k.hasSubscribers()&&u){u();let e=p.indexOf(u);e!==-1&&p.splice(e,1),u=null}}let b={$id:o,get state(){return a},get getters(){return m},get actions(){return $},$expose(){return{state:a,getters:m}},$reset(){if(d)return;let e=Object.keys(a),n=Object.keys(c);for(let r of n)a[r]=c[r];for(let r of e)n.includes(r)||delete a[r]},$subscribe(e){if(d)return()=>{};let n=k.subscribe(([r,s])=>{e(r,s)});return I(),()=>{n(),M()}},$dispose(){if(!d){for(let e of p)e();p.length=0,u=null,k.clear(),l.delete(o),d=!0}},$patch(e){d||((0,i.isFunction)(e)?e(a):(0,i.mergeObjects)(a,e))},use(e){if(d)return()=>{};let n=e.install(b);return()=>{typeof n=="function"&&n()}},$onAction(e){return d?()=>{}:(g.push(e),()=>{let n=g.indexOf(e);n!==-1&&g.splice(n,1)})}};return l.set(o,b),()=>b}function j(){return Array.from(l.keys())}function C(){for(let[o,t]of l)t.$dispose();l.clear()}
|
|
@@ -93,6 +93,15 @@ export interface StoreApi<S extends Record<string, any> = Record<string, any>> {
|
|
|
93
93
|
*
|
|
94
94
|
* @param id - Store ID
|
|
95
95
|
* @returns Store 实例或 undefined
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* import { createStore, getStore } from '@lytjs/store'
|
|
100
|
+
*
|
|
101
|
+
* const useCounter = createStore('counter', { state: () => ({ count: 0 }) })
|
|
102
|
+
* const store = getStore('counter')
|
|
103
|
+
* console.log(store?.state.count) // 0
|
|
104
|
+
* ```
|
|
96
105
|
*/
|
|
97
106
|
export declare function getStore<S extends Record<string, any> = Record<string, any>>(id: string): StoreApi<S> | undefined;
|
|
98
107
|
/**
|
|
@@ -151,6 +160,15 @@ export declare function createStore<S extends Record<string, any> = Record<strin
|
|
|
151
160
|
* 获取所有已注册的 Store ID 列表
|
|
152
161
|
*
|
|
153
162
|
* @returns Store ID 数组
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```ts
|
|
166
|
+
* import { createStore, getStoreIds } from '@lytjs/store'
|
|
167
|
+
*
|
|
168
|
+
* createStore('user', { state: () => ({ name: 'lyt' }) })
|
|
169
|
+
* createStore('cart', { state: () => ({ items: [] }) })
|
|
170
|
+
* console.log(getStoreIds()) // ['user', 'cart']
|
|
171
|
+
* ```
|
|
154
172
|
*/
|
|
155
173
|
export declare function getStoreIds(): string[];
|
|
156
174
|
/**
|
|
@@ -158,6 +176,15 @@ export declare function getStoreIds(): string[];
|
|
|
158
176
|
*
|
|
159
177
|
* 销毁所有 Store 实例并清空注册表。
|
|
160
178
|
* 在测试环境的 afterEach 中调用以避免状态污染。
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```ts
|
|
182
|
+
* import { createStore, clearAllStores } from '@lytjs/store'
|
|
183
|
+
*
|
|
184
|
+
* afterEach(() => {
|
|
185
|
+
* clearAllStores()
|
|
186
|
+
* })
|
|
187
|
+
* ```
|
|
161
188
|
*/
|
|
162
189
|
export declare function clearAllStores(): void;
|
|
163
190
|
//# sourceMappingURL=create-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-store.d.ts","sourceRoot":"","sources":["../../src/create-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAsBH,eAAe;AACf,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC/E,oBAAoB;IACpB,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACtB,wBAAwB;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0.0",
|
|
4
4
|
"description": "Lyt.js 内置状态管理 - 轻量级全局状态管理,支持模块化和插件扩展",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"state-management"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@lytjs/common": "^
|
|
42
|
-
"@lytjs/reactivity": "^
|
|
41
|
+
"@lytjs/common": "^5.0.0",
|
|
42
|
+
"@lytjs/reactivity": "^5.0.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=18.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.full.d.ts","../../reactivity/dist/types/effect.d.ts","../../reactivity/dist/types/reactive.d.ts","../../reactivity/dist/types/ref.d.ts","../../reactivity/dist/types/computed.d.ts","../../reactivity/dist/types/watch.d.ts","../../reactivity/dist/types/signal.d.ts","../../reactivity/dist/types/signal-component.d.ts","../../reactivity/dist/types/index.d.ts","../../common/dist/types/is.d.ts","../../common/dist/types/object.d.ts","../../common/dist/types/string.d.ts","../../common/dist/types/path.d.ts","../../common/dist/types/emitter.d.ts","../../common/dist/types/subscription.d.ts","../../common/dist/types/cache.d.ts","../../common/dist/types/timing.d.ts","../../common/dist/types/scheduler.d.ts","../../common/dist/types/error-codes.d.ts","../../common/dist/types/lyt-error.d.ts","../../common/dist/types/warn.d.ts","../../common/dist/types/algorithm.d.ts","../../common/dist/types/index.d.ts","../src/create-store.ts","../src/index.ts"],"fileIdsList":[[72,73,74,75,76,77,78,79,80,81,82,83,84],[81],[66],[64,65,66,67,68,69,70],[69],[71,85],[86]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"01a30f9e8582b369075c0808df71121e6855cb06fd8d3d39511d9ebb66405205","impliedFormat":1},"a931971a0aed3a04be8ef1ef78e4bdd05af6d408bec44f846d3a0794dda5d708","f39120ae19c79ceffa561da071bbf53b5cf418f3ad9c186e895fa55c3c42ae31","5fe944eec62fa00578c1b68dd15a46847218f15c35eca212f86caed1469108e9","1bb4fc70e4d98ca7ef67079adde1ee3bfa3b3829ae948cf2ce5b7a332430ee65","132b0d4b346da8f6d6004dc9eb4bfc09c0d292e9325aff621b2332a12973199f","ecd41394ecea0650d670ed4cdba72fac8f219fdfa1cdcbfdcdeb79413d712d15","fe965a8da8781e4e6cef466ccccd5430dc040ae5f17615301f4203434701237c","5142c441d5148e0b3d8aaa232af01166540bc049913ded34fe2065e0ebe2cf16","0242b74c149e317117aa6c97acce4ad116212ebfd963ae50bcfe8bb4fa6410d2","8220087127ce86b259fdbc78efac6cf14064a970393dd72047205a559a67a4cd","a0c71b9e3689601665669b5ad5a43d6adb2310947a3ca8e63a8bea9bf0602c95","525e3e3f106504c4e62d3564c5fea77ab17d72725981f45042ce51e9f6ae0220","66558f40fbf300cbba390965583590c6e9a874c6f95f42549fe6bf10f2ec35dd","4addbf2b9b6fcad145efc10233ce211a220cbc6a35b069d0a0467dd10ec5d855","5ef34083e9d734dfc751b5a45e046219bc29d4d9b97c51b2fad58f4305b52d7f","290759e0e7e335e470cb0b8fb085232ba92bbf53e3a6d7dfdc65423a4baf644c","0db5120e2a3e67bc5892e63f1bcf4a3d933755d5ac15fb7e1c989deb34fafd61","df3112eeed1593533b757b55fba51326c3984752f79699bc3a9c919c6556e901","1e74c319ebca519283c6be7486b2f44f2bc180f4394b8191801294081169e459","5679cb7e73eb8c28182e6455e3146ec797942cdaa0b52ece0559f1997a1dc420","9555e351c5d92cadc1e3bee2ed9735874050d48f1ab0d2f9339ab6d83865566e","df0f6ffe3276b650678e05f472d35c46ef581bc2d402dcf2c3e452a8b773b7c9",{"version":"f59a62bda9eff8a91d15d65f37ba5b8cd6e991db2e1911a76bb08a314a3a1878","signature":"7aede12a36d331cfbe3cba2094daafa5095f83ff850ba46e9fb98830d9775aba"},{"version":"2febcc57d45fe09a0be670e5c4e9f648bedf9726b0df1fedad8205e62273f269","signature":"4b7b434b8b604b44e24043a89d6531a71a363b82dd806c88f30a0ec44bf320dc"}],"root":[86,87],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":99,"noEmitOnError":false,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./types","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"useDefineForClassFields":true,"verbatimModuleSyntax":true},"referencedMap":[[85,1],[82,2],[67,3],[71,4],[70,5],[68,3],[86,6],[87,7]],"semanticDiagnosticsPerFile":[[86,[{"start":316,"length":5,"messageText":"'toRaw' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":5642,"length":8,"messageText":"Cannot invoke an object which is possibly 'undefined'.","category":1,"code":2722},{"start":7127,"length":8,"code":2684,"category":1,"messageText":{"messageText":"The 'this' context of type '((this: StoreApi<S>, ...args: any[]) => any) | undefined' is not assignable to method's 'this' of type '(this: StoreApi<S>, ...args: any[]) => any'.","category":1,"code":2684,"next":[{"messageText":"Type 'undefined' is not assignable to type '(this: StoreApi<S>, ...args: any[]) => any'.","category":1,"code":2322}]}},{"start":7127,"length":8,"messageText":"'actionFn' is possibly 'undefined'.","category":1,"code":18048},{"start":9194,"length":17,"messageText":"Object is possibly 'undefined'.","category":1,"code":2532},{"start":9227,"length":17,"messageText":"Object is possibly 'undefined'.","category":1,"code":2532},{"start":12689,"length":11,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'Partial<S> | ((state: S) => void)' is not assignable to parameter of type 'Record<string, unknown>'.","category":1,"code":2345,"next":[{"messageText":"Type '(state: S) => void' is not assignable to type 'Record<string, unknown>'.","category":1,"code":2322,"next":[{"messageText":"Index signature for type 'string' is missing in type '(state: S) => void'.","category":1,"code":2329}]}]}},{"start":14203,"length":2,"messageText":"'id' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"latestChangedDtsFile":"./types/index.d.ts","version":"6.0.2"}
|