fix(plugins): satisfy doctor compat lint · openclaw/openclaw@efaa66f
vincentkoc
·
2026-04-26
·
via Recent Commits to openclaw:main
File tree
src/commands/doctor/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -241,8 +241,7 @@ export const DOCTOR_DEPRECATION_COMPAT_RECORDS = [
|
241 | 241 | |
242 | 242 | export type DoctorDeprecationCompatCode = |
243 | 243 | (typeof DOCTOR_DEPRECATION_COMPAT_RECORDS)[number]["code"]; |
244 | | -export type KnownDoctorDeprecationCompatRecord = |
245 | | -DoctorDeprecationCompatRecord<DoctorDeprecationCompatCode>; |
| 244 | +export type KnownDoctorDeprecationCompatRecord = DoctorDeprecationCompatRecord; |
246 | 245 | |
247 | 246 | const doctorDeprecationCompatRecordByCode = new Map< |
248 | 247 | DoctorDeprecationCompatCode, |
@@ -260,7 +259,7 @@ export function listDeprecatedDoctorDeprecationCompatRecords(): readonly KnownDo
|
260 | 259 | } |
261 | 260 | |
262 | 261 | export function isDoctorDeprecationCompatCode(code: string): code is DoctorDeprecationCompatCode { |
263 | | -return doctorDeprecationCompatRecordByCode.has(code as DoctorDeprecationCompatCode); |
| 262 | +return doctorDeprecationCompatRecordByCode.has(code); |
264 | 263 | } |
265 | 264 | |
266 | 265 | export function getDoctorDeprecationCompatRecord( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。