// @flow// This file is not actually executed// It is just used by flow for typingconstprefix: string = 'Invariant failed';
exportdefaultfunctioninvariant(condition: mixed, message?: string) {
if (condition) {
return;
}
thrownewError(`${prefix}: ${message || ''}`);
}