UNPKG

fluidstate-preact

Version:

Library for using fine-grained reactivity state management library fluidstate in Preact

19 lines (18 loc) 590 B
import { ReactionOptions } from "fluidstate"; declare const PreactEffect: new (fn: () => void) => { _dispose(): void; _callback(): void; }; declare const callbackPropertyName: "_callback"; /** * Extension of `@preact/signals-core` Effect in order to add * the ability to schedule effects. A variety of hacky deductions * are made in order to extend the preact's Effect class */ export declare class Effect extends PreactEffect { private options?; constructor(fn: () => void, options?: ReactionOptions); [callbackPropertyName](): void; stop(): void; } export {};