@trivia-api/fetch
Version:
Functions to fetch data from The Trivia API.
15 lines (14 loc) • 509 B
TypeScript
/**
* 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 addQuestionsToSession: ({ sessionId, questionIds, apiKey, }: {
sessionId: string;
questionIds: string[];
apiKey: string;
}, host?: string) => Promise<void>;