@lewebsimple/nuxt-graphql 0.6.14 → 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
|
@@ -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>;
|