style: auto format whole project
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import type { FieldPolicy, Reference } from '@apollo/client';
|
||||
|
||||
type KeyArgs = FieldPolicy<unknown>["keyArgs"];
|
||||
type KeyArgs = FieldPolicy<unknown>['keyArgs'];
|
||||
|
||||
export type TEdge<TNode> = {
|
||||
node: TNode;
|
||||
} | Reference;
|
||||
export type TEdge<TNode> =
|
||||
| {
|
||||
node: TNode;
|
||||
}
|
||||
| Reference;
|
||||
|
||||
export type TPageInfo = {
|
||||
currentPage: number;
|
||||
@@ -27,7 +29,6 @@ export type CustomFieldPolicy<TNode> = FieldPolicy<
|
||||
TIncoming<TNode> | null
|
||||
>;
|
||||
|
||||
|
||||
const makeEmptyData = <TNode>(): TExisting<TNode> => {
|
||||
return {
|
||||
edges: [],
|
||||
@@ -51,8 +52,7 @@ function offsetLimitPagination<TNode = Reference>(
|
||||
if (!incoming || incoming === null) return existing;
|
||||
|
||||
const existingEdges = existing?.edges || [];
|
||||
const incomingEdges = incoming.edges || []
|
||||
|
||||
const incomingEdges = incoming.edges || [];
|
||||
|
||||
if (args) {
|
||||
const newEdges = [...existingEdges, ...incomingEdges];
|
||||
|
Reference in New Issue
Block a user