aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-05 13:04:53 +0100
committerGravatar Joe Banks <[email protected]>2020-10-05 13:04:53 +0100
commit1c686c78ee92dd6ad3701511c6e63984b49124e8 (patch)
treee11792ca3aff75f481002dd148f7ac709c114420
parentUpdate the forms API wrapper to fetch a specific form (diff)
Add a very basic question type
-rw-r--r--src/api/question.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/api/question.ts b/src/api/question.ts
new file mode 100644
index 0000000..e051459
--- /dev/null
+++ b/src/api/question.ts
@@ -0,0 +1,11 @@
+export enum QuestionType {
+ Text,
+ Checkbox,
+ Radio,
+ Code
+}
+
+export interface Question {
+ name: string,
+ type: QuestionType
+}