added missing type

This commit is contained in:
Kevand
2026-04-09 02:24:12 +01:00
parent 3ac3331070
commit f537fec097

View File

@@ -12,7 +12,7 @@ export const isState = (obj: any): obj is State<any> => {
export interface State<T> {
get(): T;
set(v: T): void;
sub(fn: Listener): Unsubscribe;
sub(fn: Listener, fire?: boolean): Unsubscribe;
}
export function createState<T>(initial: T): State<T> {