mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-26 08:31:55 +00:00
refactor: dedupe extension string record helpers
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
export function asRecord(value: unknown): Record<string, unknown> | undefined {
|
||||
return typeof value === "object" && value !== null
|
||||
? (value as Record<string, unknown>)
|
||||
: undefined;
|
||||
}
|
||||
import { asOptionalObjectRecord } from "openclaw/plugin-sdk/text-runtime";
|
||||
|
||||
export const asRecord = asOptionalObjectRecord;
|
||||
|
||||
export function readString(
|
||||
record: Record<string, unknown> | undefined,
|
||||
|
||||
Reference in New Issue
Block a user