Skip to content

Commit a90f2a2

Browse files
committed
Lint
1 parent 775271b commit a90f2a2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/type/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import type { Maybe } from '../jsutils/Maybe';
66
import type { ObjMap } from '../jsutils/ObjMap';
77
import { toObjMap } from '../jsutils/toObjMap';
88

9+
import type { GraphQLErrorBehavior } from '../error/ErrorBehavior';
10+
import { isErrorBehavior } from '../error/ErrorBehavior';
911
import type { GraphQLError } from '../error/GraphQLError';
1012

1113
import type {
@@ -31,8 +33,6 @@ import {
3133
import type { GraphQLDirective } from './directives';
3234
import { isDirective, specifiedDirectives } from './directives';
3335
import { __Schema } from './introspection';
34-
import type { GraphQLErrorBehavior } from '../error';
35-
import { isErrorBehavior } from '../error/ErrorBehavior';
3636

3737
/**
3838
* Test if the given value is a GraphQL schema.

src/utilities/extendSchema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { keyMap } from '../jsutils/keyMap';
55
import { mapValue } from '../jsutils/mapValue';
66
import type { Maybe } from '../jsutils/Maybe';
77

8+
import type { GraphQLErrorBehavior } from '../error/ErrorBehavior';
9+
810
import type {
911
DirectiveDefinitionNode,
1012
DocumentNode,
@@ -83,7 +85,6 @@ import { assertValidSDLExtension } from '../validation/validate';
8385
import { getDirectiveValues } from '../execution/values';
8486

8587
import { valueFromAST } from './valueFromAST';
86-
import type { GraphQLErrorBehavior } from '../error';
8788

8889
interface Options extends GraphQLSchemaValidationOptions {
8990
/**

src/utilities/printSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function printSchemaDefinition(schema: GraphQLSchema): Maybe<string> {
9797
const directives =
9898
schema.defaultErrorBehavior !== 'PROPAGATE'
9999
? `@behavior(onError: ${schema.defaultErrorBehavior}) `
100-
: ``;
100+
: '';
101101

102102
return (
103103
printDescription(schema) +

0 commit comments

Comments
 (0)