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