MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / getSearchLabelsMutationOptions

Function getSearchLabelsMutationOptions

src/api/labels/labels.ts:115–132  ·  view source on GitHub ↗
(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof searchLabels>>, TError,{data: SearchLabelsBody}, TContext>, }
)

Source from the content-addressed store, hash-verified

113
114
115export const getSearchLabelsMutationOptions = <TError = unknown,
116 TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof searchLabels>>, TError,{data: SearchLabelsBody}, TContext>, }
117): UseMutationOptions<Awaited<ReturnType<typeof searchLabels>>, TError,{data: SearchLabelsBody}, TContext> => {
118 const {mutation: mutationOptions} = options ?? {};
119
120
121
122
123 const mutationFn: MutationFunction<Awaited<ReturnType<typeof searchLabels>>, {data: SearchLabelsBody}> = (props) => {
124 const {data} = props ?? {};
125
126 return searchLabels(data,)
127 }
128
129
130
131
132 return { mutationFn, ...mutationOptions }}
133
134 export type SearchLabelsMutationResult = NonNullable<Awaited<ReturnType<typeof searchLabels>>>
135 export type SearchLabelsMutationBody = SearchLabelsBody

Callers 1

useSearchLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected