We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58ee89f commit 6178901Copy full SHA for 6178901
dashi/src/state/component.ts
@@ -6,6 +6,7 @@ export type ComponentType = "Button" | "Dropdown" | "Plot" | "Box";
6
export interface ComponentState {
7
type: ComponentType;
8
label?: string;
9
+ components?: ComponentState[];
10
// common HTML attributes
11
id?: string;
12
name?: string;
@@ -20,7 +21,7 @@ export interface ContainerState extends ComponentState {
20
21
export function isContainerState(
22
componentModel: ComponentState,
23
): componentModel is ContainerState {
- return !!(componentModel as ContainerState).components;
24
+ return !!componentModel.components;
25
}
26
27
export interface DropdownState extends ComponentState {
0 commit comments