@lewebsimple/nuxt-graphql 0.6.12 → 0.6.15
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -203,7 +203,7 @@ function addUniversalTemplate({ filename, getContents, emitTs }) {
|
|
|
203
203
|
return modulePath;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
const version = "0.6.
|
|
206
|
+
const version = "0.6.15";
|
|
207
207
|
|
|
208
208
|
async function getDocuments(documentsGlob) {
|
|
209
209
|
try {
|
|
@@ -239,7 +239,6 @@ async function getOperationsTemplate({ loadSchema, loadDocuments, documentGlob }
|
|
|
239
239
|
},
|
|
240
240
|
defaultScalarType: "never",
|
|
241
241
|
enumsAsTypes: true,
|
|
242
|
-
maybeValue: "T | undefined",
|
|
243
242
|
preResolveTypes: false,
|
|
244
243
|
strictScalars: true,
|
|
245
244
|
useTypeImports: true
|
|
@@ -257,7 +256,6 @@ async function getOperationsTemplate({ loadSchema, loadDocuments, documentGlob }
|
|
|
257
256
|
enumsAsTypes: true,
|
|
258
257
|
exportFragmentSpreadSubTypes: true,
|
|
259
258
|
inlineFragmentTypes: "combine",
|
|
260
|
-
maybeValue: "T | undefined",
|
|
261
259
|
operationResultSuffix: "Result",
|
|
262
260
|
operationVariablesSuffix: "Variables",
|
|
263
261
|
preResolveTypes: false,
|
|
@@ -2,13 +2,13 @@ import type { QueryName, ResultOf, VariablesOf } from "#graphql/registry";
|
|
|
2
2
|
import { type ComputedRef, type MaybeRef, type Ref } from "#imports";
|
|
3
3
|
type PageInfoFragment = {
|
|
4
4
|
hasNextPage: boolean;
|
|
5
|
-
endCursor: string | undefined;
|
|
5
|
+
endCursor: string | null | undefined;
|
|
6
6
|
};
|
|
7
7
|
type Connection<TItem> = {
|
|
8
8
|
nodes: TItem[];
|
|
9
9
|
pageInfo: PageInfoFragment;
|
|
10
10
|
};
|
|
11
|
-
export declare function useGraphQLLoadMore<TQueryName extends QueryName, TConnection extends Connection<unknown>>(queryName: TQueryName, inputVars: MaybeRef<Omit<VariablesOf<TQueryName>, "after">>, getConnection: (data?: ResultOf<TQueryName>) => TConnection | undefined): Promise<{
|
|
11
|
+
export declare function useGraphQLLoadMore<TQueryName extends QueryName, TConnection extends Connection<unknown>>(queryName: TQueryName, inputVars: MaybeRef<Omit<VariablesOf<TQueryName>, "after">>, getConnection: (data?: ResultOf<TQueryName>) => TConnection | null | undefined): Promise<{
|
|
12
12
|
items: Ref<TConnection["nodes"][number][], TConnection["nodes"][number][]>;
|
|
13
13
|
pending: Ref<boolean, boolean>;
|
|
14
14
|
error: Ref<import("../../shared/lib/error.js").NormalizedError | undefined, import("../../shared/lib/error.js").NormalizedError | undefined>;
|