Skip to content

Commit ed0453a

Browse files
authored
types: export mutation types (#2780)
1 parent efe07d7 commit ed0453a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

mutation/src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import type {
1414
SWRMutationConfiguration,
1515
SWRMutationResponse,
1616
SWRMutationHook,
17-
MutationFetcher
17+
MutationFetcher,
18+
TriggerWithArgs,
19+
TriggerWithoutArgs,
20+
TriggerWithOptionsArgs
1821
} from './types'
1922

2023
const mutation = (<Data, Error>() =>
@@ -160,5 +163,8 @@ export {
160163
SWRMutationConfiguration,
161164
SWRMutationResponse,
162165
SWRMutationHook,
163-
MutationFetcher
166+
MutationFetcher,
167+
TriggerWithArgs,
168+
TriggerWithoutArgs,
169+
TriggerWithOptionsArgs
164170
}

mutation/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export interface TriggerWithArgs<
8888
): Promise<Data | undefined>
8989
}
9090

91-
interface TriggerWithOptionsArgs<
91+
export interface TriggerWithOptionsArgs<
9292
Data = any,
9393
Error = any,
9494
SWRMutationKey extends Key = Key,

0 commit comments

Comments
 (0)