UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 339 B
//#region src/plugin-sdk/lazy-value.ts /** Returns a getter that resolves the supplied value at most once. */ function createCachedLazyValueGetter(e) { let t = false; let n; return () => { if (!t) { n = typeof e === "function" ? e() : e; t = true; } return n; }; } //#endregion export { createCachedLazyValueGetter as t };