UNPKG

@bentoo/state-man

Version:

A lightweight package for state management in React applications, designed as a simplified alternative to Zustand and the Context API.

10 lines (9 loc) 276 B
import { IObservable } from 'interfaces'; import { Observer } from '../types'; export declare class Observable implements IObservable { observers: Observer[]; constructor(); subscribe(observer: Observer): () => void; private unsubscribe; notify(): void; }