Completely rewrite the UI Components

to a new functional way of defining them with advantages towards generating docs and a potential editor functionality
This commit is contained in:
uwap 2018-11-10 01:34:31 +01:00
parent 62ad9db5f0
commit 0a027fd7c2
14 changed files with 461 additions and 371 deletions

View file

@ -22,9 +22,9 @@ export interface UIControl {
+topic: string
}
export interface Enableable {
export type Enableable = $ReadOnly<{
enableCondition?: (s: State) => boolean
}
}>;
export type UIToggle = $ReadOnly<{|
type: "toggle",