@trivia-api/fetch
Version:
Functions to fetch data from The Trivia API.
15 lines (14 loc) • 559 B
TypeScript
import { GetQuestionsParams } from "./getQuestions";
/**
* Adds questions to a session, marking them as "used" so that they won't be
* returned again.
*
* @param sessionId - The ID of the session to add questions to
* @param questionIds - The IDs of the questions to add to the session
* @param apiKey - The API key to use
* @returns the created session object
*/
export declare const previewSessionQuestions: (params: {
sessionId: string;
apiKey?: string;
} & Omit<GetQuestionsParams, "session" | "preview">, host?: string) => Promise<void>;