question.ts 344 B

123456789101112131415
  1. import { HasObjectId } from '@growi/core';
  2. export const QuestionType = { points: 'points', text: 'text' } as const;
  3. type QuestionType = typeof QuestionType[keyof typeof QuestionType];
  4. export interface IQuestion {
  5. type: QuestionType
  6. text: {
  7. ja_JP: string
  8. en_US: string
  9. }
  10. }
  11. export type IQuestionHasId = IQuestion & HasObjectId;