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

pelotom / runtypes / 548 / 1
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2021 05:35PM UTC
Files 30
Run time 2s
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

27 Mar 2021 05:34PM UTC coverage: 99.204% (+0.001%) from 99.203%
548.1

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 %.

384 of 385 relevant lines covered (99.74%)

325.08 hits per line

Source Files on job 548.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 484
  • Travis Job 548.1
  • f398f055 on github
  • Prev Job for on master (#546.1)
  • Next Job for on master (#549.1)
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