UNPKG

abon

Version:

Flexible state management for React 🚀

12 lines (11 loc) • 535 B
import { Abon } from "./abon"; import { ReadonlyAbonInheritedUp } from "./readonly-abon-inherited-up"; /** Inherits a value from children if the current value is undefined. */ export declare class AbonInheritedUp<T> extends ReadonlyAbonInheritedUp<T> implements Abon<T> { set(value: T | undefined): this; notify(): void; set current(value: T); get current(): T; static use(deps?: readonly any[]): AbonInheritedUp<object>; static useRef<T extends object>(deps?: readonly any[]): AbonInheritedUp<T>; }