QuizFlash / src /types /questionConfig.ts
Shih-hungg's picture
Fix type errors
c7d096e
raw
history blame contribute delete
548 Bytes
export interface ParameterOption {
value: string | number | boolean;
label: string;
}
export interface QuestionParameterConfig {
key: string;
label: string;
type: 'text' | 'textarea' | 'select' | 'number' | 'range' | 'checkbox' | 'tags';
required?: boolean;
defaultValue?: string | number | boolean | string[];
placeholder?: string;
helpText?: string;
options?: ParameterOption[];
min?: number;
max?: number;
step?: number;
}
export interface QuestionTypeConfig {
id: string;
parameters: QuestionParameterConfig[];
}