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)
12 lines
232 B
JavaScript
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];
|