import { ActionType } from 'typesafe-actions'; import * as t from 'io-ts'; import * as actions from './actions'; // @todo fix this type export type Loopable = { order: Array; dict: { [key: string]: E; }; }; export const toggle = t.union([t.literal('on'), t.literal('off')]); export type Toggle = t.TypeOf; export type Cursor = false | [number, number]; export type RootAction = ActionType;