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:
Peter Steinberger
2026-08-15 01:32:04 -07:00
committed by GitHub
parent 26ff3c9607
commit aaa509b26e
29 changed files with 205 additions and 163 deletions
+2 -2
View File
@@ -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),
};
}