Skip to content

Commit 047c414

Browse files
committed
refactor: remove unnecessary type annotation
1 parent 553e7aa commit 047c414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createReactiveSystem, type Link, type ReactiveFlags, type ReactiveNode } from './system.js';
1+
import { createReactiveSystem, type ReactiveFlags, type ReactiveNode } from './system.js';
22

33
interface EffectScope extends ReactiveNode { }
44

@@ -329,7 +329,7 @@ function effectScopeOper(this: EffectScope): void {
329329
}
330330

331331
function purgeDeps(sub: ReactiveNode) {
332-
const depsTail = sub.depsTail as Link | undefined;
332+
const depsTail = sub.depsTail;
333333
let toRemove = depsTail !== undefined ? depsTail.nextDep : sub.deps;
334334
while (toRemove !== undefined) {
335335
toRemove = unlink(toRemove, sub);

0 commit comments

Comments
 (0)