Closed DrFacepalm closed 3 years ago
Solved. Note that if you do
if (typeof pageQuery.order === "boolean") {
console.log(query.seek)
}
this will not work because typescript does not properly check the type, but:
if (pageQuery.order !== null) {
console.log(query.seek)
}
will work properly.
When trying to use this type, e.g.
query.limit
does not exist inQuerySeekAfterBefore
and so TypeScript does not allow this.