Initial Save
This commit is contained in:
8
node_modules/graphql/jsutils/invariant.js.flow
generated
vendored
Normal file
8
node_modules/graphql/jsutils/invariant.js.flow
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// @flow strict
|
||||
|
||||
export default function invariant(condition: mixed, message?: string): void {
|
||||
const booleanCondition = Boolean(condition);
|
||||
if (!booleanCondition) {
|
||||
throw new Error(message || 'Unexpected invariant triggered');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user