• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pelotom / runtypes / 548
96%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2021 05:35PM UTC
Jobs 1
Files 30
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
548

push

travis-ci

web-flow
Support arbitrary length unions (#166)

* feat: support arbitrary length unions

I had to separate out "RuntypeBase" which only includes the actual validation methods from "Runtype" which includes all the helper methods. This is because internally we frequently treat Runtype as "covariant" i.e. if I was expecting a `Runtype<string>` it's ok to give me a `Runtype<'hello world'>`. TypeScript historically hasn't cared that much about variance, but over time it is getting strickter and the helper methods are often invariant.

BREAKING CHANGE: the various `Union2`, `Union3`, ... types have all been replaced with a single `Union` type that takes a tuple of Runtype validators.

Co-authored-by: Yu Shimura <mail@yuhr.org>

239 of 243 branches covered (98.35%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 3 files covered. (100.0%)

384 of 385 relevant lines covered (99.74%)

325.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 548.1 27 Mar 2021 05:35PM UTC 0
99.2
Travis Job 548.1
Source Files on build 548
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #548
  • f398f055 on github
  • Prev Build on master (#546)
  • Next Build on master (#549)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc