Skip to content

[AT-100]: Add optional description field to BaseQuestionOption interface#446

Open
dmitrycnstrc wants to merge 1 commit intoConstructor-io:masterfrom
dmitrycnstrc:AT-100/quiz-option-description-websitejs-libraryui-library
Open

[AT-100]: Add optional description field to BaseQuestionOption interface#446
dmitrycnstrc wants to merge 1 commit intoConstructor-io:masterfrom
dmitrycnstrc:AT-100/quiz-option-description-websitejs-libraryui-library

Conversation

@dmitrycnstrc
Copy link
Copy Markdown
Contributor

Add optional description field to BaseQuestionOption interface
https://linear.app/constructor/issue/AT-100/quiz-option-description-websitejs-libraryui-library

Copilot AI review requested due to automatic review settings April 21, 2026 11:39
@dmitrycnstrc dmitrycnstrc requested a review from a team as a code owner April 21, 2026 11:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an optional description field to quiz question option types so API consumers can display richer option text when available.

Changes:

  • Extend BaseQuestionOption with description?: Nullable<string>.
  • Update the tsd type tests to validate description accepts both a string and null.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/types/quizzes.d.ts Adds description?: Nullable<string> to BaseQuestionOption.
src/types/tests/quizzes.test-d.ts Updates type assertions to include description in question options (string and null).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants