Skip to content

Commit

Permalink
docs: improve pick and transform doc (#26043)
Browse files Browse the repository at this point in the history
  • Loading branch information
noppytinto committed Mar 2, 2024
1 parent e890c9a commit 2d3f495
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/nuxt/src/app/composables/asyncData.ts
Original file line number Diff line number Diff line change
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 the `pick` option.
*/
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 the `transform` option.
*/
pick?: PickKeys
/**
Expand Down

0 comments on commit 2d3f495

Please sign in to comment.