udacity / cloudflare-typescript-workers

Types and mocks for building a tested Typescript Cloudflare Worker, generates three NPM packages
Apache License 2.0
139 stars 12 forks source link

fix: KV Namespace list method accepts an object #32

Open 13rac1 opened 3 years ago

13rac1 commented 3 years ago

The KV.list() method signature according to the docs is:

NAMESPACE.list({prefix?: string, limit?: number, cursor?: string})

This solution seems correct to resolve #27 but I'm not 100% about it. Open to better ideas??? @adamjakab @marcelduin