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