A function which wraps execution of pagination on aws-sdk results which
paginate their results. For example
- implementing a pagiantion for every aws-sdk function is a pain.
- implementing a generic function is easy, but could get messy.
This package provides the generic wrapper function and also typings to infer the results and input args for the used pagination function in order to simplify the usage of those.
- No Dependencies
- Type inference on the usage
If the conditionally types are already setup fo the service/function. The usage is very easy:
But even if there are no pammings for certain types (PRs are welcome 😀) You can supply own config and metadata
The typescript inference will help you to pass parameter in a right way
Works Great with mocks
;;jest.mock"aws-sdk";.mock"listSecrets".resolve;it"Should list secrets from secretsmanager",;
if you miss a function/service for better type inference, feel free to add it to Mappings and PR it back
npm run test
See change history here Changelog.