-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-amplify/storage list() pagination pageSize
error: No overload matches this call.
#14099
Comments
Hey,👋 thanks for raising this! I'm going to transfer this over to our JS repository for better assistance 🙂 |
Hi. I did not get notification from github about all your replies, in my Inbox, don't know why, even being mentioned, so I come back late. The full implementing code, that currently causing compile error:
Note: I'm using Vite for React based from the sample template got from Quickstart doc The error appears in both tsLinter and from IDE tslint message, in VSCode IDE, when hover over the underline marked word
The doc refering for this is exact the page refered: https://docs.amplify.aws/react/build-a-backend/storage/list-files/#list-files |
Hey @tomphan thanks for following up. Looking at the sample code you provided above, the const PAGE_SIZE = 20;
let nextToken = undefined;
const response = await list({
path: 'a/b/c',
options: {
pageSize: PAGE_SIZE,
nextToken,
}
}); The TS complained error was specifically complaining about passing wrong parameters. |
Thanks, so the wrong params was taken from the doc, on the link refered above. Please correct the doc. |
Environment information
Describe the bug
Trying implementing storage
list()
following the doc. The simple list without pagination works well.However, with pagination, the compiler complains:
Please take a look. Thanks.
Reproduction steps
Simple implementation of listing a storage following the doc.
The text was updated successfully, but these errors were encountered: