File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
core/src/model/json-definitions Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { QuickFormQuestionsDefinition } from "./QuickFormQuestionsDefinition";
4
4
import { QuickFormSubmitDefinition } from "./QuickFormSubmitDefinition" ;
5
5
import { LayoutDefinition } from "./Layout" ;
6
6
7
- export type QuickFormDefinition = {
7
+ export interface QuickFormDefinition {
8
8
validation ?: {
9
9
messages ?: {
10
10
"NOT_ALL_QUESTIONS_ANSWERED" ?: string ,
Original file line number Diff line number Diff line change 1
1
import { QuestionJsonModel } from "./JsonDataModels" ;
2
2
3
- export type QuickFormQuestionsDefinition = { [ logicalName : string ] : QuestionJsonModel ; } ;
3
+ export interface QuickFormQuestionsDefinition { [ logicalName : string ] : QuestionJsonModel ; } ;
Original file line number Diff line number Diff line change
1
+ import exp from "constants" ;
1
2
import { Locale } from "./Locale" ;
2
3
import { ViewNames } from "./ViewNames" ;
3
4
import { QuickFormDefinition } from "@eavfw/quickform-core" ;
4
5
5
- export type QuickFormDesignerDefinition = {
6
- __designer : {
7
- activeView ?: ViewNames ;
8
- activeSlide ?: string ;
9
- activeQuestion ?: string ;
10
- } ,
6
+ export interface QuickFormDesignerState {
7
+ activeView ?: ViewNames ;
8
+ activeSlide ?: string ;
9
+ activeQuestion ?: string ;
10
+ [ key : string ] : string | undefined ;
11
+ }
12
+
13
+ export type QuickFormDesignerDefinition = {
14
+ __designer : QuickFormDesignerState ,
11
15
designerLocale ?: Locale ,
12
16
questions : {
13
17
[ key : string ] : {
Original file line number Diff line number Diff line change 1
- export type ViewNames = "settings" | "intro" | "submit" | "ending" | "layout" | "questions" | "sourceView" ;
1
+ export type ViewNames = "settings" | "intro" | "submit" | "ending" | "layout" | "questions" | "sourceView" | string ;
You can’t perform that action at this time.
0 commit comments