@tiesen/effect-tanstack-query 0.0.17 → 0.0.18
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/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as TanstackQueryOptionsProxy, t as SubscriptionOptions } from "./types-Day-Eet1.mjs";
|
|
2
2
|
import { Service } from "effect/Context";
|
|
3
3
|
import { ManagedRuntime } from "effect/ManagedRuntime";
|
|
4
4
|
//#region src/create-proxy.d.ts
|
|
@@ -43,4 +43,4 @@ import { ManagedRuntime } from "effect/ManagedRuntime";
|
|
|
43
43
|
*/
|
|
44
44
|
declare function createTanstackQueryOptionsProxy<TServiceTag, TService>(tag: Service<TServiceTag, TService>, runtime: ManagedRuntime<TServiceTag, never>): TanstackQueryOptionsProxy<TService>;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { type TanstackQueryOptionsProxy, createTanstackQueryOptionsProxy };
|
|
46
|
+
export { type SubscriptionOptions, type TanstackQueryOptionsProxy, createTanstackQueryOptionsProxy };
|
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as UseSubscriptionReturns, t as SubscriptionOptions } from "./types-Day-Eet1.mjs";
|
|
2
2
|
//#region src/react.d.ts
|
|
3
|
-
declare function useSubscription<TData, TError>(opts: SubscriptionOptions<TData, TError>):
|
|
3
|
+
declare function useSubscription<TData, TError>(opts: SubscriptionOptions<TData, TError>): UseSubscriptionReturns<TData, TError>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { type SubscriptionOptions, type SubscriptionReturns, useSubscription };
|
|
5
|
+
export { type SubscriptionOptions, type UseSubscriptionReturns as SubscriptionReturns, useSubscription };
|
|
@@ -80,12 +80,12 @@ interface SubscriptionOptions<TData, TError> {
|
|
|
80
80
|
/**
|
|
81
81
|
* Callback invoked when the connection's status changes
|
|
82
82
|
*/
|
|
83
|
-
onConnectionChange?: (result: Partial<
|
|
83
|
+
onConnectionChange?: (result: Partial<UseSubscriptionReturns<TData, TError>>) => void;
|
|
84
84
|
}
|
|
85
85
|
type QueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = QueryObserverOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {
|
|
86
86
|
subscribed?: boolean;
|
|
87
87
|
};
|
|
88
|
-
type
|
|
88
|
+
type UseSubscriptionReturns<TData, TError> = {
|
|
89
89
|
reset: () => void;
|
|
90
90
|
} & ({
|
|
91
91
|
status: 'idle';
|
|
@@ -107,4 +107,4 @@ type SubscriptionReturns<TData, TError> = {
|
|
|
107
107
|
type UnwrapCodec<T> = T extends Schema<unknown> ? Schema.Type<T> : T extends object ? { [K in keyof T]: UnwrapCodec<T[K]>; } : T;
|
|
108
108
|
type MakeOptionalInput<T> = keyof T extends never ? void | undefined : T;
|
|
109
109
|
//#endregion
|
|
110
|
-
export {
|
|
110
|
+
export { TanstackQueryOptionsProxy as n, UseSubscriptionReturns as r, SubscriptionOptions as t };
|
package/dist/vue.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as UseSubscriptionReturns, t as SubscriptionOptions } from "./types-Day-Eet1.mjs";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
3
|
//#region src/vue.d.ts
|
|
4
|
-
declare function useSubscription<TData, TError>(optsInput: MaybeRefOrGetter<SubscriptionOptions<TData, TError>>):
|
|
4
|
+
declare function useSubscription<TData, TError>(optsInput: MaybeRefOrGetter<SubscriptionOptions<TData, TError>>): UseSubscriptionReturns<TData, TError>;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { type SubscriptionOptions, type SubscriptionReturns, useSubscription };
|
|
6
|
+
export { type SubscriptionOptions, type UseSubscriptionReturns as SubscriptionReturns, useSubscription };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiesen/effect-tanstack-query",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Effortlessly bridge Effect HTTP API clients with TanStack Query. Enjoy end-to-end type safety, zero-boilerplate options, and built-in streaming support out of the box.",
|
|
6
6
|
"keywords": [
|