Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
Remove the string option from body
Browse files Browse the repository at this point in the history
This will permit a better type definition for DELETE. So we can use `string` as `TBody`.
  • Loading branch information
fabien0102 committed May 16, 2019
1 parent 3ef62e7 commit e9ccbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mutate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface States<TData, TError> {
error?: GetState<TData, TError>["error"];
}

export type MutateMethod<TData, TRequestBody> = (data?: string | TRequestBody) => Promise<TData>;
export type MutateMethod<TData, TRequestBody> = (data?: TRequestBody) => Promise<TData>;

/**
* Meta information returned to the fetchable
Expand Down

0 comments on commit e9ccbbf

Please sign in to comment.