@mearie/react 0.3.1 → 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 +2 -2
- package/dist/index.d.mts +2 -2
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -104,8 +104,8 @@ type MutationResult<T extends Artifact<'mutation'>> = {
|
|
|
104
104
|
error: AggregatedError;
|
|
105
105
|
metadata: OperationResult['metadata'];
|
|
106
106
|
};
|
|
107
|
-
type UseMutationOptions = MutationOptions
|
|
108
|
-
type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, UseMutationOptions
|
|
107
|
+
type UseMutationOptions<T extends Artifact<'mutation'> = Artifact<'mutation'>> = MutationOptions<T>;
|
|
108
|
+
type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, UseMutationOptions<T>?] : [VariablesOf<T>, UseMutationOptions<T>?]) => Promise<DataOf<T>>, MutationResult<T>];
|
|
109
109
|
declare const useMutation: <T extends Artifact<"mutation">>(mutation: T) => Mutation<T>;
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region src/use-fragment.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -104,8 +104,8 @@ type MutationResult<T extends Artifact<'mutation'>> = {
|
|
|
104
104
|
error: AggregatedError;
|
|
105
105
|
metadata: OperationResult['metadata'];
|
|
106
106
|
};
|
|
107
|
-
type UseMutationOptions = MutationOptions
|
|
108
|
-
type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, UseMutationOptions
|
|
107
|
+
type UseMutationOptions<T extends Artifact<'mutation'> = Artifact<'mutation'>> = MutationOptions<T>;
|
|
108
|
+
type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, UseMutationOptions<T>?] : [VariablesOf<T>, UseMutationOptions<T>?]) => Promise<DataOf<T>>, MutationResult<T>];
|
|
109
109
|
declare const useMutation: <T extends Artifact<"mutation">>(mutation: T) => Mutation<T>;
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region src/use-fragment.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mearie/react",
|
|
3
|
-
"version": "0.3.
|
|
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.
|
|
55
|
+
"@mearie/core": "0.5.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/react": "^19.2.14",
|