Consider how to avoid the need for an unwrap in PaginatedResult.next
#11
Labels
enhancement
New feature or improved functionality.
PaginatedResult.next
#11
The
PaginatedResult
type introduced in #9 is currently just copied from the JS type. I think the intention is that you checkhasNext
, and then, if it’strue
,next
will return a non-nil value. But the compiler doesn't know this, so you still have to unwrapnext
. Think about an API that avoids this; probably would be an enum where the "has next" case has an associated value that lets you load the non-optional next page.┆Issue is synchronized with this Jira Story by Unito
The text was updated successfully, but these errors were encountered: