@trivia-api/fetch
Advanced tools
Comparing version 1.15.0 to 1.16.0
@@ -10,5 +10,5 @@ import { Question } from "../../models/src"; | ||
* @param host - Optional host to send request to | ||
* @returns | ||
* @returns the ID of the newly created question | ||
*/ | ||
export declare const submitQuestion: (key: string | null, question: SubmittableQuestion, host?: string) => Promise<unknown>; | ||
export declare const submitQuestion: (key: string | null, question: SubmittableQuestion, host?: string) => Promise<string>; | ||
export {}; |
@@ -58,3 +58,3 @@ "use strict"; | ||
* @param host - Optional host to send request to | ||
* @returns | ||
* @returns the ID of the newly created question | ||
*/ | ||
@@ -61,0 +61,0 @@ var submitQuestion = function (key, question, host) { |
@@ -54,2 +54,7 @@ export declare type Category = "Music" | "Sport & Leisure" | "Film & TV" | "Arts & Literature" | "History" | "Society & Culture" | "Science" | "Geography" | "Food & Drink" | "General Knowledge"; | ||
regions?: string[]; | ||
/** | ||
* Will be true if the question is a niche question, i.e. if it is considered too difficult to | ||
* return unless the tag is specifically requested. | ||
*/ | ||
isNiche: boolean; | ||
} | ||
@@ -56,0 +61,0 @@ export declare const isValidDifficulty: (arg: unknown) => arg is "medium" | "easy" | "hard" | undefined; |
{ | ||
"name": "@trivia-api/fetch", | ||
"version": "1.15.0", | ||
"version": "1.16.0", | ||
"description": "Functions to fetch data from The Trivia API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
42420
838