We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe43a1b commit 1b640b6Copy full SHA for 1b640b6
src/mini-signals.ts
@@ -2,13 +2,13 @@ type CallBack<T extends any[]> = (...x: T) => void;
2
3
const MINI_SIGNAL_KEY = Symbol('SIGNAL');
4
5
-type MiniSignalNodeRef<T, S> = {
6
- [MINI_SIGNAL_KEY]: Symbol,
7
- __brand?: S,
8
- __type?: T
9
-};
+interface MiniSignalNodeRef<T, S> {
+ [MINI_SIGNAL_KEY]: Symbol;
+ __brand?: S;
+ __type?: T;
+}
10
11
-type MiniSignalNode<T extends any[]> = {
+interface MiniSignalNode<T extends any[]> {
12
fn: CallBack<T>;
13
next?: MiniSignalNode<T>;
14
prev?: MiniSignalNode<T>;
0 commit comments