kurdquiz_lib
Version:
52 lines • 1.57 kB
TypeScript
import { InferType } from "yup";
declare const baseGameSchema: import("yup").ObjectSchema<import("yup").Shape<object | undefined, {
game_id: string;
date: Date;
prize: number;
done: boolean | undefined;
number_of_options: number;
time_to_answer: number;
questions: import("yup").Shape<object | undefined, {
question_id: any;
title: any;
difficulty: any;
used: any;
answers: any;
correct_answer_id: any;
}>[] | undefined;
}>>;
export declare const validateTimeToAnswer: (data: any) => Promise<import("yup").Shape<object | undefined, {
game_id: string;
date: Date;
prize: number;
done: boolean | undefined;
number_of_options: number;
time_to_answer: number;
questions: import("yup").Shape<object | undefined, {
question_id: any;
title: any;
difficulty: any;
used: any;
answers: any;
correct_answer_id: any;
}>[] | undefined;
}>>;
export declare type Game = InferType<typeof baseGameSchema>;
export declare const validateGame: (game: any) => Promise<import("yup").Shape<object | undefined, {
game_id: string;
date: Date;
prize: number;
done: boolean | undefined;
number_of_options: number;
time_to_answer: number;
questions: import("yup").Shape<object | undefined, {
question_id: any;
title: any;
difficulty: any;
used: any;
answers: any;
correct_answer_id: any;
}>[] | undefined;
}>>;
export {};
//# sourceMappingURL=game.d.ts.map