File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function isGraphQLError(error: unknown): error is GraphQLError {
44
44
* GraphQL document and/or execution result that correspond to the Error.
45
45
*/
46
46
export class GraphQLError extends Error {
47
- [ isGraphQLErrorSymbol ] : true = true ;
47
+ readonly [ isGraphQLErrorSymbol ] : true = true ;
48
48
/**
49
49
* An array of `{ line, column }` locations within the source GraphQL document
50
50
* which correspond to this error.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const isSourceSymbol = Symbol.for('Source');
15
15
* The `line` and `column` properties in `locationOffset` are 1-indexed.
16
16
*/
17
17
export class Source {
18
- [ isSourceSymbol ] : true = true ;
18
+ readonly [ isSourceSymbol ] : true = true ;
19
19
body : string ;
20
20
name : string ;
21
21
locationOffset : Location ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const isGraphQLDirectiveSymbol = Symbol.for('GraphQLDirective');
57
57
* behavior. Type system creators will usually not create these directly.
58
58
*/
59
59
export class GraphQLDirective {
60
- [ isGraphQLDirectiveSymbol ] : true = true ;
60
+ readonly [ isGraphQLDirectiveSymbol ] : true = true ;
61
61
name : string ;
62
62
description : Maybe < string > ;
63
63
locations : ReadonlyArray < DirectiveLocation > ;
Original file line number Diff line number Diff line change @@ -136,11 +136,12 @@ const isSchemaSymbol = Symbol.for('GraphQLSchema');
136
136
* ```
137
137
*/
138
138
export class GraphQLSchema {
139
+ readonly [ isSchemaSymbol ] : true = true ;
140
+
139
141
description : Maybe < string > ;
140
142
extensions : Readonly < GraphQLSchemaExtensions > ;
141
143
astNode : Maybe < SchemaDefinitionNode > ;
142
144
extensionASTNodes : ReadonlyArray < SchemaExtensionNode > ;
143
- [ isSchemaSymbol ] : true = true ;
144
145
145
146
// Used as a cache for validateSchema().
146
147
__validationErrors : Maybe < ReadonlyArray < GraphQLError > > ;
You can’t perform that action at this time.
0 commit comments