mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-23 19:08:22 -06:00
refactor(types): remove chained type assertions in core and ui (#124073)
* refactor(types): remove chained assertions in core and ui * fix(types): preserve legacy cron migration identity * fix(types): preserve settings patch key types
This commit is contained in:
committed by
GitHub
parent
26ff3c9607
commit
aaa509b26e
@@ -361,8 +361,8 @@ function assertLocalFallbackMatchesGatewayRequest(
|
||||
function redactLocalPairedDevice(device: InfraPairedDevice): PairedDevice {
|
||||
const { tokens, ...rest } = device;
|
||||
return {
|
||||
...(rest as unknown as PairedDevice),
|
||||
tokens: summarizeDeviceTokens(tokens) as DeviceTokenSummary[] | undefined,
|
||||
...rest,
|
||||
tokens: summarizeDeviceTokens(tokens),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user