Download src/types/questionConfig.ts from Hoooong/QuizFlash: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/spaces/Hoooong/QuizFlash/resolve/main/src/types/questionConfig.ts
- Command line
-
hf download hf://spaces/Hoooong/QuizFlash/src/types/questionConfig.ts
-
curl -L -o questionConfig.ts https://huggingface.co/spaces/Hoooong/QuizFlash/resolve/main/src/types/questionConfig.ts
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[]; | |
| } |