File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
packages/event-handler/tests/helpers Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -98,21 +98,14 @@ const createEventFactory = (
98
98
stash : { } ,
99
99
} ) ;
100
100
101
- const onQueryEventFactory = (
102
- fieldName = 'getPost' ,
103
- args = { } ,
104
- typeName = 'Query'
105
- ) => createEventFactory ( fieldName , args , typeName ) ;
106
-
107
- const onMutationEventFactory = (
108
- fieldName = 'addPost' ,
109
- args = { } ,
110
- typeName = 'Mutation'
101
+ const onGraphqlEventFactory = (
102
+ fieldName : string ,
103
+ typeName : 'Query' | 'Mutation' ,
104
+ args : Record < string , unknown > = { }
111
105
) => createEventFactory ( fieldName , args , typeName ) ;
112
106
113
107
export {
114
108
onPublishEventFactory ,
115
109
onSubscribeEventFactory ,
116
- onQueryEventFactory ,
117
- onMutationEventFactory ,
110
+ onGraphqlEventFactory ,
118
111
} ;
You can’t perform that action at this time.
0 commit comments