Skip to content

Commit

Permalink
Improve internal type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Aug 14, 2023
1 parent 1e51d57 commit fc70bca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/doc-explorer/WrappedTypeName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
getNamedType,
GraphQLArgument,
GraphQLField,
GraphQLInputField,
GraphQLNamedType,
} from 'graphql/type';

Expand All @@ -14,7 +15,7 @@ import RelayIcon from '../icons/relay-icon.svg';
import TypeLink from './TypeLink';

interface WrappedTypeNameProps {
container: GraphQLField<any, any> | GraphQLArgument;
container: GraphQLField<any, any> | GraphQLArgument | GraphQLInputField;
onTypeLink: (type: GraphQLNamedType) => void;
}

Expand Down
2 changes: 1 addition & 1 deletion src/graph/type-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
export interface TypeGraph {
schema: GraphQLSchema;
rootType: GraphQLCompositeType;
nodes: Map<string, GraphQLCompositeType>;
nodes: Map<string, GraphQLNamedType>;
}

export function isNode(type: GraphQLNamedType): type is GraphQLCompositeType {
Expand Down

0 comments on commit fc70bca

Please sign in to comment.