[IMP] reactivity: slightly improve code and typing

This commit is contained in:
Géry Debongnie
2021-11-13 08:34:43 +01:00
committed by Aaron Bohy
parent e0c0306acd
commit 7513b1e507
2 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -871,7 +871,7 @@ describe("Reactivity: atom", () => {
let n = 0;
const observer = () => n++;
const unregisterObserver = registerObserver(observer);
const state = atom({ a: 1 }, observer);
const state = atom({ a: 1 } as any, observer);
state.a = state.a;
await nextMicroTick();