Commit a34e553
committed
GraphQLError: switch constructor overload order
The GraphQLError constructor has two overloads. The GraphQLErrorArgs one
is recommended and the one with a bunch of position arguments is
deprecated.
When typechecking, TypeScript chooses the *first* matching overload (see
eg
microsoft/TypeScript#1860 (comment)).
Passing just a message argument matches both overloads, so this
currently displays as deprecated.
This PR reverses the order so that passing just a message does not
display as deprecated.1 parent da57238 commit a34e553
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
0 commit comments