File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export interface BaseQuestion extends Record<string, any> {
137137export interface FilterValueQuestion extends BaseQuestion {
138138 type : 'single_filter_value' | 'multiple_filter_values' ;
139139 filter_name : string ;
140- options : QuestionOption [ ] ;
140+ options : FilterQuestionOption [ ] ;
141141}
142142
143143export interface SelectQuestion extends BaseQuestion {
@@ -159,8 +159,7 @@ export interface QuizResult extends Record<string, any> {
159159 results_url : string ;
160160}
161161
162- export interface QuestionOption extends Record < string , any > {
163- id : string | number ;
162+ export interface BaseOption {
164163 value : string ;
165164 attribute : Nullable < {
166165 name : string ;
@@ -169,6 +168,14 @@ export interface QuestionOption extends Record<string, any> {
169168 images ?: Nullable < QuestionImages > ;
170169}
171170
171+ export interface QuestionOption extends BaseOption {
172+ id : number ;
173+ }
174+
175+ export interface FilterQuestionOption extends BaseOption {
176+ id : string ;
177+ }
178+
172179export interface QuestionImages extends Record < string , any > {
173180 primary_url ?: Nullable < string > ;
174181 primary_alt ?: Nullable < string > ;
You can’t perform that action at this time.
0 commit comments