()
| 101 | } |
| 102 | |
| 103 | async initialize(): Promise<QuizServiceState> { |
| 104 | this.currentState = { |
| 105 | pendingQuestion: null, |
| 106 | }; |
| 107 | this.pendingRequests.clear(); |
| 108 | return this.currentState; |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | export const quizService = new QuizService(); |