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)
21 lines
524 B
JavaScript
21 lines
524 B
JavaScript
// @flow
|
|
import "core-js/stable";
|
|
import "regenerator-runtime/runtime";
|
|
import "../node_modules/leaflet/dist/leaflet.css";
|
|
|
|
import React from "react";
|
|
import ReactDOM from "react-dom";
|
|
|
|
import App from "components/App";
|
|
|
|
import "../css/styles.css";
|
|
|
|
import type { Config } from "config/flowtypes";
|
|
|
|
const config: Config = window.config;
|
|
|
|
document.title = `${config.space.name} Map`;
|
|
|
|
// $FlowFixMe
|
|
const contentElement: Element = document.getElementById("content");
|
|
ReactDOM.render(<App config={config} />, contentElement);
|