Frontend stuff

This commit is contained in:
maciejhirsz
2018-07-02 16:07:16 +02:00
parent fe2419e54b
commit 1eea35b7ce
204 changed files with 659 additions and 227 deletions
+9
View File
@@ -0,0 +1,9 @@
import { Types } from '@dotstats/common';
import { Node } from './Node';
export interface State {
best: Types.BlockNumber,
nodes: Map<Types.NodeId, Node.Props>
}
export type Update = <K extends keyof State>(changes: Pick<State, K> | null) => Readonly<State>;