Closed oliverdunk closed 1 year ago
Patch coverage: 100.00
% and project coverage change: +0.52
:tada:
Comparison is base (
98aee76
) 35.61% compared to head (8b68314
) 36.14%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Overview
Improves rendering of the chrome.gcm senderIds type in the chrome.gcm.register function.
Thought Process
When generating the chrome.gcm docs, we were previously seeing the following in the gcm.json spec:
And generating a union of all possible array lengths.
While it would be nice to have proper rendering for this in the future (e.g a min and max length tag) this PR implements a temporary solution where we simply collapse the type to X[] when we see more than 10 (an arbitrary but reasonable sound number) possible types. This seems reasonable since chrome.gcm is currently the only API with this problem (I checked) and the comments already explain the limit in detail.
Additional Details
Fixes https://github.com/GoogleChrome/developer.chrome.com/issues/1850 Fixes https://github.com/GoogleChrome/developer.chrome.com/issues/5176