Skip to content

Commit

Permalink
coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypercubed committed Mar 30, 2023
1 parent fe43a1b commit 1b640b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mini-signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ type CallBack<T extends any[]> = (...x: T) => void;

const MINI_SIGNAL_KEY = Symbol('SIGNAL');

type MiniSignalNodeRef<T, S> = {
[MINI_SIGNAL_KEY]: Symbol,
__brand?: S,
__type?: T
};
interface MiniSignalNodeRef<T, S> {
[MINI_SIGNAL_KEY]: Symbol;
__brand?: S;
__type?: T;
}

type MiniSignalNode<T extends any[]> = {
interface MiniSignalNode<T extends any[]> {
fn: CallBack<T>;
next?: MiniSignalNode<T>;
prev?: MiniSignalNode<T>;
Expand Down

0 comments on commit 1b640b6

Please sign in to comment.