@navios/react-query 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/client/types.d.mts +337 -113
- package/dist/src/client/types.d.mts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/lib/_tsup-dts-rollup.d.mts +336 -112
- package/lib/_tsup-dts-rollup.d.ts +336 -112
- package/package.json +1 -1
- package/src/client/__type-tests__/client-instance.spec-d.mts +2 -2
- package/src/client/types.mts +617 -141
package/package.json
CHANGED
|
@@ -758,7 +758,7 @@ describe('mutationFromEndpoint() with stream endpoints', () => {
|
|
|
758
758
|
|
|
759
759
|
test('stream mutation with onSuccess callback', () => {
|
|
760
760
|
const mutation = client.mutationFromEndpoint(streamEndpointGet, {
|
|
761
|
-
onSuccess: (
|
|
761
|
+
onSuccess: (data, variables) => {
|
|
762
762
|
// data should be Blob
|
|
763
763
|
assertType<Blob>(data)
|
|
764
764
|
// variables should have urlParams
|
|
@@ -778,7 +778,7 @@ describe('mutationFromEndpoint() with stream endpoints', () => {
|
|
|
778
778
|
test('stream mutation with custom processResponse and onSuccess', () => {
|
|
779
779
|
const mutation = client.mutationFromEndpoint(streamEndpointGet, {
|
|
780
780
|
processResponse: (blob) => ({ url: URL.createObjectURL(blob), size: blob.size }),
|
|
781
|
-
onSuccess: (
|
|
781
|
+
onSuccess: (data) => {
|
|
782
782
|
// data should be the transformed type
|
|
783
783
|
assertType<{ url: string; size: number }>(data)
|
|
784
784
|
},
|