UNPKG

anime-quiz

Version:

A simple module to generate anime quiz.

22 lines (21 loc) 455 B
export declare class Quiz { private quizzes; private utils; constructor(); /** * Genrates random Quiz * @returns {IQuiz} The Quiz object */ getRandom: () => IQuiz; /** * Gets a Quiz by the ID * @returns {IQuiz} The Quiz object */ getQuizById: (id: number) => IQuiz; } export interface IQuiz { id: number; question: string; options: string[]; answer: string; }