mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: improve pick and transform doc (#26043)
This commit is contained in:
parent
e890c9a64b
commit
2d3f495a7f
@ -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
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user