選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

questionInterface.ts 426B

1234567891011121314151617181920212223
  1. export interface QuestionData {
  2. email: string;
  3. firstName: string;
  4. lastName: string;
  5. message: string;
  6. }
  7. export interface QuestionDataDB extends QuestionData {
  8. id: string;
  9. _id: string;
  10. __v: number;
  11. }
  12. export interface QuestionResponsePost {
  13. message: string;
  14. question: QuestionData;
  15. }
  16. export interface QuestionError {
  17. message: string;
  18. }
  19. export type QuestionResponse = QuestionResponsePost | QuestionError;