UNPKG
@trivia-api/fetch
Version:
latest (1.46.0)
1.46.0
1.43.0
1.42.0
1.38.0
1.37.0
1.35.0
1.31.0
1.24.0
1.23.0
1.22.0
1.16.0
1.15.0
1.14.0
1.13.0
1.12.0
1.11.0
1.10.0
1.8.0
1.7.0
1.6.1
1.6.0
1.5.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Functions to fetch data from The Trivia API.
the-trivia-api.com
@trivia-api/fetch
/
dist
/
fetch
/
src
/
constants.d.ts
11 lines
(10 loc)
•
291 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
declare
const
TRIVIA_API_BASE_URL
=
"https://the-trivia-api.com/v2"
;
/** * Headers used whenever sending a request using this package. */
export
declare
const
headers
: {
accept
:
string
;
"cache-control"
:
string
;
"content-type"
:
string
;
"X-Requested-With"
:
string
; };