Showing 11 of 11 total issues
Similar blocks of code found in 3 locations. Consider refactoring. Open
export const isInputValueList = (value: Maybe<InputValueDefinitionNode['type']>): value is ListTypeNode => notEmpty(value) && value.kind === 'ListType';
- Read upRead up
Similar blocks of code found in 3 locations. Consider refactoring. Open
export const isInputValueBasicObject = (value: Maybe<InputValueDefinitionNode['type']>): value is NamedTypeNode => notEmpty(value) && value.kind === 'NamedType';
- Read upRead up
Similar blocks of code found in 3 locations. Consider refactoring. Open
export const isInputValueNonNull = (value: Maybe<InputValueDefinitionNode['type']>): value is NonNullTypeNode => notEmpty(value) && value.kind === 'NonNullType';
- Read upRead up
Similar blocks of code found in 8 locations. Consider refactoring. Open
export const isInputObject = (value: Maybe<DefinitionNode>): value is InputObjectTypeDefinitionNode => notEmpty(value) && value.kind === 'InputObjectTypeDefinition';
- Read upRead up
Similar blocks of code found in 8 locations. Consider refactoring. Open
export const isFieldDefinition = (value: Maybe<Field>): value is FieldDefinitionNode => notEmpty(value) && value.kind === 'FieldDefinition';
- Read upRead up
Similar blocks of code found in 8 locations. Consider refactoring. Open
export const isInputValueDefinition = (value: Maybe<Field>): value is InputValueDefinitionNode => notEmpty(value) && value.kind === 'InputValueDefinition';
- Read upRead up
Similar blocks of code found in 8 locations. Consider refactoring. Open
export const isObjectDefinition = (value: Maybe<DefinitionNode>): value is ObjectTypeDefinitionNode => notEmpty(value) && value.kind === 'ObjectTypeDefinition';
- Read upRead up
Similar blocks of code found in 8 locations. Consider refactoring. Open
export const isScalarDefinition = (value: Maybe<DefinitionNode>): value is ScalarTypeDefinitionNode => notEmpty(value) && value.kind === 'ScalarTypeDefinition';
- Read upRead up
Similar blocks of code found in 8 locations. Consider refactoring. Open
export const isInterfaceDefinition = (value: Maybe<DefinitionNode>): value is InterfaceTypeDefinitionNode => notEmpty(value) && value.kind === 'InterfaceTypeDefinition';
- Read upRead up
Similar blocks of code found in 8 locations. Consider refactoring. Open
export const isObjectExtension = (value: Maybe<DefinitionNode>): value is ObjectTypeExtensionNode => notEmpty(value) && value.kind === 'ObjectTypeExtension';
- Read upRead up
Similar blocks of code found in 8 locations. Consider refactoring. Open
export const isOperation = (value: Maybe<DefinitionNode>): value is OperationDefinitionNode => notEmpty(value) && value.kind === 'OperationDefinition';
- Read upRead up