@lytjs/reactivity 4.1.0 → 4.2.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 +202 -0
- package/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# @lytjs/reactivity
|
|
2
|
+
|
|
3
|
+
Lyt.js 响应式系统 - 提供响应式数据、计算属性、侦听器等核心响应式能力。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @lytjs/reactivity
|
|
9
|
+
|
|
10
|
+
# 或使用 pnpm
|
|
11
|
+
pnpm add @lytjs/reactivity
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 特性
|
|
15
|
+
|
|
16
|
+
- 🚀 Proxy 代理实现,性能优异
|
|
17
|
+
- 🔄 Signal 细粒度响应式 API
|
|
18
|
+
- 📦 完全兼容 Vue 3 响应式 API
|
|
19
|
+
- 🎯 零运行时依赖,体积仅 2.86KB (gzip)
|
|
20
|
+
|
|
21
|
+
## 快速开始
|
|
22
|
+
|
|
23
|
+
### ref - 响应式引用
|
|
24
|
+
|
|
25
|
+
```javascript
|
|
26
|
+
import { ref } from '@lytjs/reactivity';
|
|
27
|
+
|
|
28
|
+
const count = ref(0);
|
|
29
|
+
console.log(count.value); // 0
|
|
30
|
+
|
|
31
|
+
count.value++;
|
|
32
|
+
console.log(count.value); // 1
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### reactive - 响应式对象
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
import { reactive } from '@lytjs/reactivity';
|
|
39
|
+
|
|
40
|
+
const state = reactive({
|
|
41
|
+
count: 0,
|
|
42
|
+
name: 'Lyt.js'
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
console.log(state.count); // 0
|
|
46
|
+
state.count++;
|
|
47
|
+
console.log(state.count); // 1
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### computed - 计算属性
|
|
51
|
+
|
|
52
|
+
```javascript
|
|
53
|
+
import { ref, computed } from '@lytjs/reactivity';
|
|
54
|
+
|
|
55
|
+
const count = ref(0);
|
|
56
|
+
const doubled = computed(() => count.value * 2);
|
|
57
|
+
|
|
58
|
+
console.log(doubled.value); // 0
|
|
59
|
+
|
|
60
|
+
count.value++;
|
|
61
|
+
console.log(doubled.value); // 2
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### watch - 数据侦听
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
import { ref, watch } from '@lytjs/reactivity';
|
|
68
|
+
|
|
69
|
+
const count = ref(0);
|
|
70
|
+
|
|
71
|
+
watch(count, (newValue, oldValue) => {
|
|
72
|
+
console.log(`count 变化: ${oldValue} -> ${newValue}`);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
count.value++; // count 变化: 0 -> 1
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### effect - 副作用
|
|
79
|
+
|
|
80
|
+
```javascript
|
|
81
|
+
import { ref, effect } from '@lytjs/reactivity';
|
|
82
|
+
|
|
83
|
+
const count = ref(0);
|
|
84
|
+
|
|
85
|
+
effect(() => {
|
|
86
|
+
console.log(`count 当前值: ${count.value}`);
|
|
87
|
+
});
|
|
88
|
+
// count 当前值: 0
|
|
89
|
+
|
|
90
|
+
count.value++; // count 当前值: 1
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Signal API
|
|
94
|
+
|
|
95
|
+
Signal 提供细粒度响应式能力,性能更优:
|
|
96
|
+
|
|
97
|
+
```javascript
|
|
98
|
+
import { signal, computed } from '@lytjs/reactivity/signal';
|
|
99
|
+
|
|
100
|
+
const count = signal(0);
|
|
101
|
+
const doubled = computed(() => count() * 2);
|
|
102
|
+
|
|
103
|
+
console.log(count()); // 0
|
|
104
|
+
console.log(doubled()); // 0
|
|
105
|
+
|
|
106
|
+
count.set(1);
|
|
107
|
+
console.log(count()); // 1
|
|
108
|
+
console.log(doubled()); // 2
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## API 参考
|
|
112
|
+
|
|
113
|
+
### 响应式 API
|
|
114
|
+
|
|
115
|
+
| API | 说明 |
|
|
116
|
+
|------|------|
|
|
117
|
+
| `ref(value)` | 创建响应式引用 |
|
|
118
|
+
| `reactive(obj)` | 创建响应式对象 |
|
|
119
|
+
| `shallowRef(value)` | 创建浅层响应式引用 |
|
|
120
|
+
| `readonly(obj)` | 创建只读响应式对象 |
|
|
121
|
+
| `toRef(obj, key)` | 将对象属性转为 ref |
|
|
122
|
+
| `toRefs(obj)` | 将对象所有属性转为 ref |
|
|
123
|
+
|
|
124
|
+
### 计算与侦听
|
|
125
|
+
|
|
126
|
+
| API | 说明 |
|
|
127
|
+
|------|------|
|
|
128
|
+
| `computed(fn)` | 创建计算属性 |
|
|
129
|
+
| `watch(source, fn, options)` | 数据变化时执行回调 |
|
|
130
|
+
| `watchEffect(fn)` | 立即执行并追踪响应式依赖 |
|
|
131
|
+
| `effect(fn, options)` | 创建副作用 |
|
|
132
|
+
| `stop(effect)` | 停止副作用 |
|
|
133
|
+
|
|
134
|
+
### 工具函数
|
|
135
|
+
|
|
136
|
+
| API | 说明 |
|
|
137
|
+
|------|------|
|
|
138
|
+
| `isRef(v)` | 判断是否为 ref |
|
|
139
|
+
| `isReactive(v)` | 判断是否为 reactive |
|
|
140
|
+
| `isReadonly(v)` | 判断是否为 readonly |
|
|
141
|
+
| `unref(v)` | 解包 ref |
|
|
142
|
+
| `nextTick(fn)` | 在下一次 DOM 更新后执行 |
|
|
143
|
+
|
|
144
|
+
## 示例
|
|
145
|
+
|
|
146
|
+
### 表单验证
|
|
147
|
+
|
|
148
|
+
```javascript
|
|
149
|
+
import { reactive, computed } from '@lytjs/reactivity';
|
|
150
|
+
|
|
151
|
+
const form = reactive({
|
|
152
|
+
email: '',
|
|
153
|
+
password: ''
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
const isValidEmail = computed(() => {
|
|
157
|
+
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(form.email);
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
const isValidPassword = computed(() => {
|
|
161
|
+
return form.password.length >= 6;
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
const isFormValid = computed(() => {
|
|
165
|
+
return isValidEmail.value && isValidPassword.value;
|
|
166
|
+
});
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### 计数器
|
|
170
|
+
|
|
171
|
+
```javascript
|
|
172
|
+
import { ref, computed } from '@lytjs/reactivity';
|
|
173
|
+
|
|
174
|
+
const count = ref(0);
|
|
175
|
+
const doubled = computed(() => count.value * 2);
|
|
176
|
+
|
|
177
|
+
function increment() {
|
|
178
|
+
count.value++;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function decrement() {
|
|
182
|
+
count.value--;
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## 性能
|
|
187
|
+
|
|
188
|
+
- 体积:2.86 KB (ESM gzip)
|
|
189
|
+
- 零运行时依赖
|
|
190
|
+
- 原生 Proxy 实现,性能优异
|
|
191
|
+
|
|
192
|
+
## 兼容性
|
|
193
|
+
|
|
194
|
+
- Node.js >= 18.0.0
|
|
195
|
+
- Chrome 64+
|
|
196
|
+
- Firefox 63+
|
|
197
|
+
- Safari 12+
|
|
198
|
+
- Edge 79+
|
|
199
|
+
|
|
200
|
+
## License
|
|
201
|
+
|
|
202
|
+
MIT
|
package/package.json
CHANGED
|
@@ -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","../src/effect.ts","../src/reactive.ts","../src/ref.ts","../src/computed.ts","../src/watch.ts","../src/signal.ts","../src/signal-component.ts","../src/index.ts","../src/scheduler.ts"],"fileIdsList":[[64,66],[64,65,66,67,68,69,70],[64],[64,65],[69],[64,65,66]],"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},{"version":"42493898ab400c7c56982cca0cb2339dbfc232f2086c5401c636c4fa34477aff","signature":"a931971a0aed3a04be8ef1ef78e4bdd05af6d408bec44f846d3a0794dda5d708"},{"version":"060398dc966f0c7571ce70dd89a8bbb639208e3c0be05364eb833e83b3713657","signature":"f39120ae19c79ceffa561da071bbf53b5cf418f3ad9c186e895fa55c3c42ae31"},{"version":"74eaa329174cc8a68326a38ac59e806808edf1c4e05e3701fbf14c14203f285f","signature":"5fe944eec62fa00578c1b68dd15a46847218f15c35eca212f86caed1469108e9"},{"version":"c56441aa81cc25c253ae00bc120f02f40a170cc2911f5654537a89175311c1f0","signature":"1bb4fc70e4d98ca7ef67079adde1ee3bfa3b3829ae948cf2ce5b7a332430ee65"},{"version":"f94b8d4a9f2a3f2e840d1d73e5bd51195161ac991797e92df5b5c8d7a447c8f3","signature":"132b0d4b346da8f6d6004dc9eb4bfc09c0d292e9325aff621b2332a12973199f"},{"version":"0d9bbe431aaae996ac7b4e67a36a737edb382ef3db48d85ac85dd75525966d7d","signature":"ecd41394ecea0650d670ed4cdba72fac8f219fdfa1cdcbfdcdeb79413d712d15"},{"version":"2518606f6a3df4af92cf0bf1f088a6ddddee0644e64cd763dc03b0e79d31454d","signature":"fe965a8da8781e4e6cef466ccccd5430dc040ae5f17615301f4203434701237c"},{"version":"08780903e4a1cd6e95b70695aac31714aa42cd936f83fe7fce3d748f63894123","signature":"5142c441d5148e0b3d8aaa232af01166540bc049913ded34fe2065e0ebe2cf16"},{"version":"4c608f7cc03bd567f0f9ccf247f45af4def51fc7bb0b8deaee0c0b4a1ee4687a","signature":"c196e1b48475ddb78f5e1f87e882eb0c73fc7b8885fb6ab4d46b7c10c341f8f3"}],"root":[[64,72]],"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":[[67,1],[71,2],[65,3],[66,4],[70,5],[68,6]],"semanticDiagnosticsPerFile":[[64,[{"start":358,"length":41,"messageText":"'queueJob' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":383,"length":15,"messageText":"Cannot find module '@lytjs/common' or its corresponding type declarations.","category":1,"code":2307},{"start":2221,"length":14,"code":2412,"category":1,"messageText":{"messageText":"Type '((effect: ReactiveEffect) => void) | undefined' is not assignable to type '(effect: ReactiveEffect) => void' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type '(effect: ReactiveEffect) => void'.","category":1,"code":2322}]}},{"start":2261,"length":14,"code":2412,"category":1,"messageText":{"messageText":"Type '(() => void) | undefined' is not assignable to type '() => void' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type '() => void'.","category":1,"code":2322}]}},{"start":2301,"length":13,"code":2412,"category":1,"messageText":{"messageText":"Type '(() => void) | undefined' is not assignable to type '() => void' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type '() => void'.","category":1,"code":2322}]}},{"start":2339,"length":9,"code":2412,"category":1,"messageText":{"messageText":"Type 'boolean | undefined' is not assignable to type 'boolean' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type 'boolean'.","category":1,"code":2322}]}},{"start":5488,"length":8,"messageText":"'newValue' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[65,[{"start":225,"length":14,"messageText":"'ReactiveEffect' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":6662,"length":5,"messageText":"'value' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":6678,"length":8,"messageText":"'receiver' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":9488,"length":7,"messageText":"'options' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[66,[{"start":263,"length":14,"messageText":"'ReactiveEffect' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":316,"length":8,"messageText":"'isObject' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[67,[{"start":407,"length":7,"messageText":"'trigger' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":434,"length":8,"messageText":"'EffectFn' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.","category":1,"code":1484},{"start":434,"length":8,"messageText":"'EffectFn' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":472,"length":3,"messageText":"'Ref' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.","category":1,"code":1484},{"start":477,"length":5,"messageText":"'isRef' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":484,"length":9,"messageText":"'refSymbol' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":1693,"length":12,"code":2412,"category":1,"messageText":{"messageText":"Type 'ComputedSetter<T> | undefined' is not assignable to type 'ComputedSetter<T>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.","category":1,"code":2412,"next":[{"messageText":"Type 'undefined' is not assignable to type 'ComputedSetter<T>'.","category":1,"code":2322}]}}]],[68,[{"start":333,"length":8,"messageText":"'EffectFn' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.","category":1,"code":1484},{"start":333,"length":8,"messageText":"'EffectFn' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":345,"length":12,"messageText":"'activeEffect' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":394,"length":3,"messageText":"'Ref' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.","category":1,"code":1484},{"start":399,"length":5,"messageText":"'unref' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":442,"length":5,"messageText":"'toRaw' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":525,"length":15,"messageText":"Cannot find module '@lytjs/common' or its corresponding type declarations.","category":1,"code":2307}]],[70,[{"start":116,"length":6,"messageText":"'effect' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":680,"length":55,"code":2322,"category":1,"messageText":{"messageText":"Type 'SignalComponentContext | undefined' is not assignable to type 'SignalComponentContext | null'.","category":1,"code":2322,"next":[{"messageText":"Type 'undefined' is not assignable to type 'SignalComponentContext | null'.","category":1,"code":2322}]}}]],[71,[{"start":1557,"length":15,"messageText":"Cannot find module '@lytjs/common' or its corresponding type declarations.","category":1,"code":2307}]],[72,[{"start":2491,"length":3,"messageText":"Cannot invoke an object which is possibly 'undefined'.","category":1,"code":2722},{"start":2923,"length":12,"messageText":"Cannot invoke an object which is possibly 'undefined'.","category":1,"code":2722}]]],"latestChangedDtsFile":"./types/scheduler.d.ts","version":"6.0.2"}
|