Skip to content

Commit 60668fb

Browse files
committed
Tweak TransformCallback usage
1 parent f7754b2 commit 60668fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/query/core/buildThunks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ export function buildThunks<
462462
const getTransformCallbackForEndpoint = (
463463
endpointDefinition: EndpointDefinition<any, any, any, any>,
464464
transformFieldName: 'transformResponse' | 'transformErrorResponse',
465-
) => {
465+
): TransformCallback => {
466466
return endpointDefinition.query && endpointDefinition[transformFieldName]
467467
? endpointDefinition[transformFieldName]
468468
: defaultTransformResponse

0 commit comments

Comments
 (0)