Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd type keys to service pagination options. #1888
Conversation
|
@JorgenVatle Looking at the following line and the docs, |
|
@deskoh This PR only addresses service registration options. |
|
@deskoh To follow up on the previous note, I do believe the query API already has the proper type definitions for the The query API however, appears to lack type hints for the |

Just a simple tweak that defines the missing types for the
paginationoptions ofServiceOptions. Here I'm assuming that the only supported options aremaxanddefault.I was unable to find anything that would indicate that there are additional options. But I assume the available options could be tied to the database adapter in use? If the pagination object should accept any list of customizable options, perhaps we could consider refactoring to something like the following snippet;
This would keep type-hinting for the two documented pagination options while allowing for use of additional options.