cleaned up TypeScript in coders.ts by pcoet · Pull Request #17689 · apache/beam

Please add a meaningful description for your change here

This fixes 22 problems caught by eslint in coders.ts. The file should be clean and any free now. Let me know if I've misunderstood the intention of any of the types... I'm just looking at this code for the first time. There are probably some unknown types that could be narrower.

@robertwb
@pabloem


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.