test(telegram): type topic cache harness store · openclaw/openclaw@84ab206
steipete
·
2026-05-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -149,7 +149,14 @@ let buildTelegramMessageContextLoader:
|
149 | 149 | | undefined; |
150 | 150 | let vitestModuleLoader: Promise<typeof import("vitest")> | undefined; |
151 | 151 | let messageContextMocksInstalled = false; |
152 | | -const topicNameStoresForTest = new Map<string, Map<string, unknown>>(); |
| 152 | +type TopicNameCacheEntry = { |
| 153 | +name: string; |
| 154 | +iconColor?: number; |
| 155 | +iconCustomEmojiId?: string; |
| 156 | +closed?: boolean; |
| 157 | +updatedAt: number; |
| 158 | +}; |
| 159 | +const topicNameStoresForTest = new Map<string, Map<string, TopicNameCacheEntry>>(); |
153 | 160 | |
154 | 161 | async function loadBuildTelegramMessageContext() { |
155 | 162 | await installMessageContextTestMocks(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。