mqtt-control-map/types/types.js
uwap ccd9bcd3b5 Types are now bidirectional
It is still possible to define types as functions (Buffer => string for 
state topics, string => Buffer for command topics). Otherwise types have 
from and to properties.
(Fixes #101)
2020-10-19 05:45:09 +02:00

12 lines
232 B
JavaScript

// @flow
import type { Color } from "config/colors";
declare type Map<K,V> = { [K]: V };
declare type Classes = {
classes: Map<string, string>
};
declare type State = Map<string,string>;
declare type Point = [number, number];