Skip to content

Commit 290f0e9

Browse files
committed
Remove reference to full schema types for renderWarnings
1 parent cda6300 commit 290f0e9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

packages/libraries/cli/src/helpers/schema.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { UrlLoader } from '@graphql-tools/url-loader';
88
import type { BaseLoaderOptions, Loader, Source } from '@graphql-tools/utils';
99
import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
1010
import { FragmentType, graphql, useFragment as unmaskFragment, useFragment } from '../gql';
11-
import { SchemaWarningConnection, SeverityLevelType } from '../gql/graphql';
11+
import { SeverityLevelType } from '../gql/graphql';
1212
import { APIError, IntrospectionError, InvalidFederationSubgraphError } from './errors';
1313
import { graphqlRequest } from './graphql-request';
1414
import { Texture } from './texture/texture';
@@ -137,7 +137,13 @@ export const renderChanges = (maskedChanges: FragmentType<typeof RenderChanges_S
137137
return t.state.value;
138138
};
139139

140-
export const renderWarnings = (warnings: SchemaWarningConnection) => {
140+
export const renderWarnings = (warnings: {
141+
total: number;
142+
nodes: {
143+
message: string;
144+
source: string | null;
145+
}[];
146+
}) => {
141147
const t = Texture.createBuilder();
142148
t.line();
143149
t.warning(`Detected ${warnings.total} warning${warnings.total > 1 ? 's' : ''}`);

0 commit comments

Comments
 (0)