phx-react
Version:
PHX REACT
15 lines • 598 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = invariant;
// invariant(condition, message) will refine types based on "condition", and
// if "condition" is false will throw an error. This function is special-cased
// in flow itself, so we can't name it anything else.
function invariant(cond, message) {
if (cond) {
return;
}
throw new Error('Internal Lexical error: invariant() is meant to be replaced at compile ' +
'time. There is no runtime version. Error: ' +
message);
}
//# sourceMappingURL=invariant.js.map