refactor: trim legacy config exports · openclaw/openclaw@d87e6ee
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ export type LegacyConfigRule = {
|
7 | 7 | requireSourceLiteral?: boolean; |
8 | 8 | }; |
9 | 9 | |
10 | | -export type LegacyConfigMigration = { |
| 10 | +type LegacyConfigMigration = { |
11 | 11 | id: string; |
12 | 12 | describe: string; |
13 | 13 | apply: (raw: Record<string, unknown>, changes: string[]) => void; |
@@ -20,7 +20,6 @@ export type LegacyConfigMigrationSpec = LegacyConfigMigration & {
|
20 | 20 | import { isSafeExecutableValue } from "../infra/exec-safety.js"; |
21 | 21 | import { isRecord } from "../utils.js"; |
22 | 22 | import { isBlockedObjectKey } from "./prototype-keys.js"; |
23 | | -export { isRecord }; |
24 | 23 | |
25 | 24 | export const getRecord = (value: unknown): Record<string, unknown> | null => |
26 | 25 | isRecord(value) ? value : null; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。