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:
parent
62ad9db5f0
commit
0a027fd7c2
14 changed files with 461 additions and 371 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue