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