@mearie/vue 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 +2 -2
- package/dist/index.d.mts +2 -2
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -102,8 +102,8 @@ type MutationResult<T extends Artifact<'mutation'>> = {
|
|
|
102
102
|
error: Ref<AggregatedError>;
|
|
103
103
|
metadata: Ref<OperationResult['metadata']>;
|
|
104
104
|
};
|
|
105
|
-
type UseMutationOptions = MutationOptions
|
|
106
|
-
type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, UseMutationOptions
|
|
105
|
+
type UseMutationOptions<T extends Artifact<'mutation'> = Artifact<'mutation'>> = MutationOptions<T>;
|
|
106
|
+
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>];
|
|
107
107
|
declare const useMutation: <T extends Artifact<"mutation">>(mutation: T) => Mutation<T>;
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/use-fragment.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -102,8 +102,8 @@ type MutationResult<T extends Artifact<'mutation'>> = {
|
|
|
102
102
|
error: Ref<AggregatedError>;
|
|
103
103
|
metadata: Ref<OperationResult['metadata']>;
|
|
104
104
|
};
|
|
105
|
-
type UseMutationOptions = MutationOptions
|
|
106
|
-
type Mutation<T extends Artifact<'mutation'>> = [(...[variables, options]: VariablesOf<T> extends Record<string, never> ? [undefined?, UseMutationOptions
|
|
105
|
+
type UseMutationOptions<T extends Artifact<'mutation'> = Artifact<'mutation'>> = MutationOptions<T>;
|
|
106
|
+
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>];
|
|
107
107
|
declare const useMutation: <T extends Artifact<"mutation">>(mutation: T) => Mutation<T>;
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/use-fragment.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mearie/vue",
|
|
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
|
"tsdown": "^0.20.3",
|