UNPKG

stapp-select

Version:

Select module for stapp - modular state manager

4 lines (3 loc) 297 B
import { Module } from 'stapp'; import { SelectConfig } from './select.h'; export declare const select: <State, Result, Name extends string>({ name, selector, reactOn, reactWith }: SelectConfig<State, Result, Name>) => Module<{}, { [K in Name]: Result | null; }, { [K in Name]: Result | null; }>;