File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,24 +10,24 @@ const isProduction =
1010 * A replacement for instanceof which includes an error warning when multi-realm
1111 * constructors are detected.
1212 *
13- * In production, it simply uses the provided brand check value .
13+ * In production, it simply uses the provided type brand .
1414 *
1515 * See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
1616 * See: https://webpack.js.org/guides/production/
1717 */
1818export const instanceOf : (
19- brandCheck : true | undefined ,
19+ typeBrand : true | undefined ,
2020 value : unknown ,
2121 constructor : Constructor ,
2222) => boolean =
2323 /* c8 ignore next 9 */
2424 // FIXME: https://github.com/graphql/graphql-js/issues/2317
2525 isProduction
26- ? function instanceOf ( brandCheck : true | undefined ) : boolean {
27- return brandCheck === true ;
26+ ? function instanceOf ( typeBrand : true | undefined ) : boolean {
27+ return typeBrand === true ;
2828 }
2929 : function instanceOf (
30- _brandCheck : true | undefined ,
30+ _typeBrand : true | undefined ,
3131 value : unknown ,
3232 constructor : Constructor ,
3333 ) : boolean {
You can’t perform that action at this time.
0 commit comments