Skip to content

Commit 6ed31e9

Browse files
author
dmitrycnstrc
committed
Add optional description field to BaseQuestionOption interface
1 parent 36aee5e commit 6ed31e9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/types/quizzes.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export interface QuizResult extends Record<string, any> {
170170

171171
export interface BaseQuestionOption extends Record<string, any> {
172172
value: string;
173+
description?: Nullable<string>;
173174
attribute: Nullable<{
174175
name: string;
175176
value: string;

src/types/tests/quizzes.test-d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ expectAssignable<NextQuestionResponse>({
1919
{
2020
id: 1,
2121
value: 'Who',
22+
description: 'A warm, vibrant red tone',
2223
attribute: {
2324
name: 'group_id',
2425
value: 'test-value',
@@ -27,6 +28,7 @@ expectAssignable<NextQuestionResponse>({
2728
{
2829
id: 2,
2930
value: 'What',
31+
description: null,
3032
attribute: {
3133
name: 'group_id',
3234
value: 'test-value',

0 commit comments

Comments
 (0)