@mearie/solid 0.3.0 → 0.3.2

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.cts CHANGED
@@ -101,8 +101,8 @@ type MutationResult<T extends Artifact<'mutation'>> = {
101
101
  error: AggregatedError;
102
102
  metadata: OperationResult['metadata'];
103
103
  };
104
- type CreateMutationOptions = MutationOptions;
105
- type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, CreateMutationOptions?] : [VariablesOf<T>, CreateMutationOptions?]) => Promise<DataOf<T>>, MutationResult<T>];
104
+ type CreateMutationOptions<T extends Artifact<'mutation'> = Artifact<'mutation'>> = MutationOptions<T>;
105
+ type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, CreateMutationOptions<T>?] : [VariablesOf<T>, CreateMutationOptions<T>?]) => Promise<DataOf<T>>, MutationResult<T>];
106
106
  declare const createMutation: <T extends Artifact<"mutation">>(mutation: T) => Mutation<T>;
107
107
  //#endregion
108
108
  //#region src/create-fragment.d.ts
package/dist/index.d.mts CHANGED
@@ -101,8 +101,8 @@ type MutationResult<T extends Artifact<'mutation'>> = {
101
101
  error: AggregatedError;
102
102
  metadata: OperationResult['metadata'];
103
103
  };
104
- type CreateMutationOptions = MutationOptions;
105
- type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, CreateMutationOptions?] : [VariablesOf<T>, CreateMutationOptions?]) => Promise<DataOf<T>>, MutationResult<T>];
104
+ type CreateMutationOptions<T extends Artifact<'mutation'> = Artifact<'mutation'>> = MutationOptions<T>;
105
+ type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, CreateMutationOptions<T>?] : [VariablesOf<T>, CreateMutationOptions<T>?]) => Promise<DataOf<T>>, MutationResult<T>];
106
106
  declare const createMutation: <T extends Artifact<"mutation">>(mutation: T) => Mutation<T>;
107
107
  //#endregion
108
108
  //#region src/create-fragment.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearie/solid",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Type-safe, zero-overhead GraphQL client",
5
5
  "keywords": [
6
6
  "graphql",
@@ -52,7 +52,7 @@
52
52
  "README.md"
53
53
  ],
54
54
  "dependencies": {
55
- "@mearie/core": "0.3.0"
55
+ "@mearie/core": "0.5.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "solid-js": "^1.9.11",