UNPKG

@pionjs/pion

Version:

Hooks for web components

5 lines (4 loc) 286 B
import { State, Callable } from "./state"; type Effect = (this: State) => void | VoidFunction | Promise<void>; declare function createEffect(setEffects: (state: State, cb: Callable) => void): (callback: Effect, values?: readonly unknown[] | undefined) => void; export { createEffect };