import { AnyAction } from "redux"; import { NodeApi } from "../interfaces/node-api"; export interface IdObj { id: string; } export type Identity = string | IdObj | null; export type BoolFunc = (data: T) => boolean; export type ActionTypes< Actions extends { [name: string]: (...args: any[]) => AnyAction } > = ReturnType; export type SelectOptions = { multi?: boolean; contiguous?: boolean }; export type NodesById = { [id: string]: NodeApi };