mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
expliciting type checks and predicates (server only)
This commit is contained in:
parent
5f7021c33d
commit
c1e791bad0
34 changed files with 127 additions and 84 deletions
|
@ -67,8 +67,8 @@ async function activityPubCollectionPagination (url: string, handler: ActivityPu
|
|||
const { start, count } = pageToStartAndCount(page, ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE)
|
||||
const result = await handler(start, count)
|
||||
|
||||
let next: string
|
||||
let prev: string
|
||||
let next: string | undefined
|
||||
let prev: string | undefined
|
||||
|
||||
// Assert page is a number
|
||||
page = parseInt(page, 10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue