Skip to content

Commit ee4ab94

Browse files
committed
fix issues
1 parent 53047bc commit ee4ab94

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
interface WidgetDefinition {
22
type: string;
33
text: string;
4+
default: string | undefined;
45
}
56

7+
interface ConfigDefinition {
8+
meta: object;
9+
widgets: Array<WidgetDefinition>;
10+
}
11+
12+
613
export class ConfigClass {
7-
file: object;
14+
file: {config: ConfigDefinition};
815
widgets: Array<WidgetDefinition> = [];
916

1017
constructor(config_object: object) {
11-
this.file = config_object;
18+
this.file = config_object as {config: ConfigDefinition};
1219
this.widgets = this.file.config.widgets;
1320
}
1421

0 commit comments

Comments
 (0)