mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-14 10:41:23 +00:00
11 lines
377 B
TypeScript
11 lines
377 B
TypeScript
export { asNullableRecord as asRecord } from "openclaw/plugin-sdk/text-runtime";
|
|
export { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
|
|
export function normalizeTrimmedString(value: unknown): string | undefined {
|
|
if (typeof value !== "string") {
|
|
return undefined;
|
|
}
|
|
const trimmed = value.trim();
|
|
return trimmed.length > 0 ? trimmed : undefined;
|
|
}
|