Add import/export

This commit is contained in:
Joey Yakimowich-Payne 2026-01-15 22:27:17 -07:00
commit 667c490537
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
9 changed files with 2261 additions and 54 deletions

View file

@ -167,6 +167,20 @@ export interface Player {
}
// Network Types
export interface ExportedQuiz {
title: string;
source: QuizSource;
aiTopic?: string;
config?: GameConfig;
questions: Question[];
}
export interface QuizExportFile {
version: 1;
exportedAt: string;
quizzes: ExportedQuiz[];
}
export type NetworkMessage =
| { type: 'JOIN'; payload: { name: string; reconnect?: boolean; previousId?: string } }
| { type: 'WELCOME'; payload: {