initial update
This commit is contained in:
9
node_modules/graphql/jsutils/invariant.mjs
generated
vendored
Normal file
9
node_modules/graphql/jsutils/invariant.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export function invariant(condition, message) {
|
||||
const booleanCondition = Boolean(condition);
|
||||
|
||||
if (!booleanCondition) {
|
||||
throw new Error(
|
||||
message != null ? message : 'Unexpected invariant triggered.',
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user