openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
9 lines (8 loc) • 318 B
JavaScript
//#region packages/normalization-core/src/expect.ts
/** Returns the value or throws with the named context; use for genuine invariants only. */
function expectDefined(e, t) {
if (e === null || e === void 0) throw new Error("expected " + t + " to be defined");
return e;
}
//#endregion
export { expectDefined as t };