From f537fec097c1a9b6770e73df212c5e830d6a0a65 Mon Sep 17 00:00:00 2001 From: Kevand Date: Thu, 9 Apr 2026 02:24:12 +0100 Subject: [PATCH] added missing type --- src/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.ts b/src/state.ts index 38865a1..0105822 100644 --- a/src/state.ts +++ b/src/state.ts @@ -12,7 +12,7 @@ export const isState = (obj: any): obj is State => { export interface State { get(): T; set(v: T): void; - sub(fn: Listener): Unsubscribe; + sub(fn: Listener, fire?: boolean): Unsubscribe; } export function createState(initial: T): State {