@trivia-api/fetch
Version:
Functions to fetch data from The Trivia API.
11 lines (10 loc) • 362 B
TypeScript
import { ReportQuestionBody } from "@trivia-api/client";
type ReportQuestionParams = ReportQuestionBody & {
apiKey: string;
questionId: string;
};
/**
* Report a question, marking it as incorrect or inappropriate
*/
export declare const reportQuestion: ({ apiKey, questionId, reason }: ReportQuestionParams, host?: string) => Promise<void>;
export {};