Skip to content

Commit

Permalink
fix: Correcting configurations with appropriate Question types.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoganandaness committed Jun 9, 2023
1 parent 722d0f4 commit ce380a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Knex } from 'knex';

import { QuestionFilterInput } from '../../resolvers/queries/ProposalsQuery';
import {
BooleanConfig,
DateConfig,
DynamicMultipleChoiceConfig,
EmbellishmentConfig,
Expand Down Expand Up @@ -48,7 +49,7 @@ import { textInputDefinition } from './TextInput';
import { visitBasisDefinition } from './VisitBasis';

export type QuestionDataTypeConfigMapping<T> = T extends DataType.BOOLEAN
? DynamicMultipleChoiceConfig
? BooleanConfig
: T extends DataType.DATE
? DateConfig
: T extends DataType.EMBELLISHMENT
Expand Down

0 comments on commit ce380a3

Please sign in to comment.