docs: improve pick and transform doc (#26043)

This commit is contained in:
Francesco Scutellaro 2024-03-02 14:08:42 +01:00 committed by GitHub
parent e890c9a64b
commit 2d3f495a7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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
/**