kurdquiz_lib
Version:
27 lines • 914 B
TypeScript
import { InferType } from "yup";
export declare const baseQuestionSchema: import("yup").ObjectSchema<import("yup").Shape<object | undefined, {
question_id: string;
title: string;
difficulty: number;
used: unknown[] | undefined;
answers: import("yup").Shape<object | undefined, {
question_id: any;
answer_text: any;
answer_id: any;
}>[];
correct_answer_id: string;
}>>;
export declare type Question = InferType<typeof baseQuestionSchema>;
export declare const validateQuestion: (question: any) => Promise<import("yup").Shape<object | undefined, {
question_id: string;
title: string;
difficulty: number;
used: unknown[] | undefined;
answers: import("yup").Shape<object | undefined, {
question_id: any;
answer_text: any;
answer_id: any;
}>[];
correct_answer_id: string;
}>>;
//# sourceMappingURL=question.d.ts.map