Skip to content

Commit

Permalink
types: export mutation types (#2780)
Browse files Browse the repository at this point in the history
  • Loading branch information
promer94 committed Sep 10, 2023
1 parent efe07d7 commit ed0453a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions mutation/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import type {
SWRMutationConfiguration,
SWRMutationResponse,
SWRMutationHook,
MutationFetcher
MutationFetcher,
TriggerWithArgs,
TriggerWithoutArgs,
TriggerWithOptionsArgs
} from './types'

const mutation = (<Data, Error>() =>
Expand Down Expand Up @@ -160,5 +163,8 @@ export {
SWRMutationConfiguration,
SWRMutationResponse,
SWRMutationHook,
MutationFetcher
MutationFetcher,
TriggerWithArgs,
TriggerWithoutArgs,
TriggerWithOptionsArgs
}
2 changes: 1 addition & 1 deletion mutation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export interface TriggerWithArgs<
): Promise<Data | undefined>
}

interface TriggerWithOptionsArgs<
export interface TriggerWithOptionsArgs<
Data = any,
Error = any,
SWRMutationKey extends Key = Key,
Expand Down

0 comments on commit ed0453a

Please sign in to comment.