UNPKG
@trivia-api/models
Version:
latest (1.47.0)
1.47.0
1.44.0
1.41.0
1.39.0
1.36.0
1.34.0
1.33.0
1.32.0
1.30.0
1.29.0
1.28.0
1.27.0
1.26.0
1.25.0
1.21.0
1.20.0
1.19.0
1.18.0
1.17.0
1.9.0
1.5.0
1.0.18
1.0.17
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.5-1
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Models for The Trivia API.
the-trivia-api.com
@trivia-api/models
/
dist
/
cjs
/
packages
/
models
/
src
/
v1
/
guards
/
index.d.ts
8 lines
(7 loc)
•
211 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
Question
}
from
"../question"
;
/** * Type guard to check that argument is assignable to PublicQuestion *
@param
arg
*
@returns
*/
export
declare
const
isQuestion
:
(
arg
:
unknown
) =>
arg is
Question
;