openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
9 lines (8 loc) • 346 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(value, context) {
if (value === null || value === void 0) throw new Error("expected " + context + " to be defined");
return value;
}
//#endregion
export { expectDefined as t };