refactor(apple): name the foreground reading type
Merged
TH
5h ago+15+15+01234567890123456789-6-6-0123456789
This PR applies the optional items from the #4267 review (https://github.com/callstack/agent-device/pull/4267#issuecomment-6684098121). It does not change behavior.
system-surface-foreground.tsexportsSystemSurfaceForegroundReading. The probe signature and bothsnapshot-route.tssites use it in place ofAwaited<ReturnType<SystemSurfaceForegroundProbe>>.- The native wedge test block has a comment that says it pins the stale abandon stamp. Its expectation is renamed to
secondAbandoned, because the expectation waits for the abandonment, not for the read to drain.
Validation: tested at f9869c44a7. The check:affected receipt and the native run follow in a comment.
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.