File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { inspect } from '../jsutils/inspect.js' ;
2
2
import type { Constructor } from '../jsutils/instanceOf.js' ;
3
- import { symbolForGraphQLInstanceOfCheck } from '../jsutils/instanceOf.js' ;
4
3
5
4
/**
6
5
* An additional check to be included within instanceOf warning when
@@ -43,5 +42,5 @@ spurious results.`,
43
42
}
44
43
}
45
44
46
- ( globalThis as any ) [ symbolForGraphQLInstanceOfCheck ] =
45
+ ( globalThis as any ) [ Symbol . for ( 'graphql.instanceOfCheck' ) ] =
47
46
developmentInstanceOfCheck ;
Original file line number Diff line number Diff line change 1
- export const symbolForGraphQLInstanceOfCheck = Symbol . for (
2
- 'graphql.instanceOfCheck' ,
3
- ) ;
4
-
5
1
/**
6
2
* "src/development.ts" includes an additional check for development mode
7
3
* which throws on multiple versions of graphql-js.
@@ -12,7 +8,7 @@ export const symbolForGraphQLInstanceOfCheck = Symbol.for(
12
8
* 2. if the "development" condition is set.
13
9
*/
14
10
const check : ( _value : unknown , _constructor : Constructor ) => void =
15
- ( globalThis as any ) [ symbolForGraphQLInstanceOfCheck ] ??
11
+ ( globalThis as any ) [ Symbol . for ( 'graphql.instanceOfCheck' ) ] ??
16
12
( ( _value : unknown , _constructor : Constructor ) => {
17
13
/* no-op */
18
14
} ) ;
You can’t perform that action at this time.
0 commit comments