choices.js
Version:
A vanilla JS customisable text input/select box plugin
9 lines (8 loc) • 404 B
TypeScript
import { Options, State } from '../interfaces';
import { StateUpdate } from '../interfaces/store';
import { ChoiceActions } from '../actions/choices';
import { ItemActions } from '../actions/items';
type ActionTypes = ChoiceActions | ItemActions;
type StateType = State['choices'];
export default function choices(s: StateType, action: ActionTypes, context?: Options): StateUpdate<StateType>;
export {};