Skip to content

Commit cfb5e91

Browse files
committed
tweak wording
1 parent a531d63 commit cfb5e91

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/jsutils/instanceOf.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
*/
1818
export 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 {

0 commit comments

Comments
 (0)