UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

10 lines (9 loc) 348 B
//#region src/gateway/server-methods/record-shared.ts /** Returns a non-empty trimmed string, or `undefined` for non-string input. */ function normalizeTrimmedString(value) { if (typeof value !== "string") return; const trimmed = value.trim(); return trimmed.length > 0 ? trimmed : void 0; } //#endregion export { normalizeTrimmedString as t };