Skip to content

Commit

Permalink
Merge pull request #6260 from WiXSL/fix-jsdocs-typos
Browse files Browse the repository at this point in the history
[Doc] Fix typos in useDelete and useDeleteMany JsDocs examples
  • Loading branch information
djhi committed May 7, 2021
2 parents c5afe12 + 2386dc3 commit f39477b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ra-core/src/dataProvider/useDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import useMutation, { MutationOptions, Mutation } from './useMutation';
* @param previousData The record before the delete is applied
* @param options Options object to pass to the dataProvider. May include side effects to be executed upon success or failure, e.g. { onSuccess: { refresh: true } }
*
* @returns The current request state. Destructure as [delteOne, { data, error, loading, loaded }].
* @returns The current request state. Destructure as [deleteOne, { data, error, loading, loaded }].
*
* The deleteOne() function can be called in 3 different ways:
* - with the same parameters as the useDelete() hook: deleteOne(resource, id, previousData, options)
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-core/src/dataProvider/useDeleteMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import useMutation, { MutationOptions, Mutation } from './useMutation';
* - with the same syntax as useMutation: deleteMany({ resource, payload: { ids } }, options)
* - with no parameter (if they were already passed to useDeleteMany()): deleteMany()
*
* @example // set params when calling the dleteMany callback
* @example // set params when calling the deleteMany callback
*
* import { useDeleteMany } from 'react-admin';
*
Expand Down

0 comments on commit f39477b

Please sign in to comment.