refactor: trim qa channel helper exports · openclaw/openclaw@c6cb7b4
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
File tree
extensions/qa-channel/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ const QaChannelGroupConfigSchema = z
|
21 | 21 | }) |
22 | 22 | .strict(); |
23 | 23 | |
24 | | -export const QaChannelAccountConfigSchema = z |
| 24 | +const QaChannelAccountConfigSchema = z |
25 | 25 | .object({ |
26 | 26 | name: z.string().optional(), |
27 | 27 | enabled: z.boolean().optional(), |
@@ -38,7 +38,7 @@ export const QaChannelAccountConfigSchema = z
|
38 | 38 | }) |
39 | 39 | .strict(); |
40 | 40 | |
41 | | -export const QaChannelConfigSchema = QaChannelAccountConfigSchema.extend({ |
| 41 | +const QaChannelConfigSchema = QaChannelAccountConfigSchema.extend({ |
42 | 42 | accounts: z.record(z.string(), QaChannelAccountConfigSchema.partial()).optional(), |
43 | 43 | defaultAccount: z.string().optional(), |
44 | 44 | }).strict(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export type QaChannelActionConfig = { |
| 1 | +type QaChannelActionConfig = { |
2 | 2 | messages?: boolean; |
3 | 3 | reactions?: boolean; |
4 | 4 | search?: boolean; |
@@ -27,7 +27,7 @@ export type QaChannelAccountConfig = {
|
27 | 27 | actions?: QaChannelActionConfig; |
28 | 28 | }; |
29 | 29 | |
30 | | -export type QaChannelConfig = QaChannelAccountConfig & { |
| 30 | +type QaChannelConfig = QaChannelAccountConfig & { |
31 | 31 | accounts?: Record<string, Partial<QaChannelAccountConfig>>; |
32 | 32 | defaultAccount?: string; |
33 | 33 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。