@tiesen/effect-tanstack-query 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +2 -2
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Service } from "effect/Context";
2
2
  import { ManagedRuntime } from "effect/ManagedRuntime";
3
- import { MutationOptions, QueryOptions } from "@tanstack/query-core";
3
+ import { DefaultedQueryObserverOptions, MutationOptions } from "@tanstack/query-core";
4
4
  import { Schema } from "effect/Schema";
5
5
  import { Client } from "effect/unstable/httpapi/HttpApiClient";
6
6
  import { HttpApiEndpoint } from "effect/unstable/httpapi/HttpApiEndpoint";
7
7
  //#region src/types.d.ts
8
8
  type TanstackQueryOptionsProxy<T> = T extends Client.Method<HttpApiEndpoint<infer _Key, infer Method, infer _Path, infer Params, infer Query, infer Payload, infer Headers, infer Success, infer Error>, infer _Error, infer _Requires> ? {
9
- queryOptions: Method extends 'GET' ? <TQuery = QueryOptions<UnwrapCodec<Success>, UnwrapCodec<Error>>>(input: MakeOptionalInput<([Params] extends [never] ? {} : {
9
+ queryOptions: Method extends 'GET' ? <TQuery = DefaultedQueryObserverOptions<UnwrapCodec<Success>, UnwrapCodec<Error>>>(input: MakeOptionalInput<([Params] extends [never] ? {} : {
10
10
  params: UnwrapCodec<Params>;
11
11
  }) & ([Query] extends [never] ? {} : {
12
12
  query: UnwrapCodec<Query>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiesen/effect-tanstack-query",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "effect",
@@ -42,7 +42,7 @@
42
42
  "typescript": "^7.0.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "@tanstack/query-core": ">=5.100.0",
45
+ "@tanstack/react-query": ">=5.100.0",
46
46
  "effect": ">=4.0.0-beta.100 || >=4.0.0"
47
47
  }
48
48
  }