Skip to content
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

docs(nuxt): improve pick and transform doc #26043

Merged
merged 3 commits into from
Mar 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/nuxt/src/app/composables/asyncData.ts
Expand Up @@ -63,11 +63,13 @@ export interface AsyncDataOptions<
*/
getCachedData?: (key: string) => DataT
/**
* A function that can be used to alter handler function result after resolving
* A function that can be used to alter handler function result after resolving.
* Do not use it along with `pick` option and vice versa
danielroe marked this conversation as resolved.
Show resolved Hide resolved
*/
transform?: _Transform<ResT, DataT>
/**
* Only pick specified keys in this array from the handler function result
* Only pick specified keys in this array from the handler function result.
* Do not use it along with `transform` option and vice versa
danielroe marked this conversation as resolved.
Show resolved Hide resolved
*/
pick?: PickKeys
/**
Expand Down