We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53047bc commit ee4ab94Copy full SHA for ee4ab94
1 file changed
src/config.ts
@@ -1,14 +1,21 @@
1
interface WidgetDefinition {
2
type: string;
3
text: string;
4
+ default: string | undefined;
5
}
6
7
+interface ConfigDefinition {
8
+ meta: object;
9
+ widgets: Array<WidgetDefinition>;
10
+}
11
+
12
13
export class ConfigClass {
- file: object;
14
+ file: {config: ConfigDefinition};
15
widgets: Array<WidgetDefinition> = [];
16
17
constructor(config_object: object) {
- this.file = config_object;
18
+ this.file = config_object as {config: ConfigDefinition};
19
this.widgets = this.file.config.widgets;
20
21
0 commit comments