first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
export type FanOutUnsubscribe = () => void;
export type FanOutListener<D> = (data: D) => void;
export declare class FanOut<D> {
readonly listeners: Set<FanOutListener<D>>;
emit(data: D): void;
listen(listener: FanOutListener<D>): FanOutUnsubscribe;
}