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

Pimm / ruply / 35594786767
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: feat/ten-callbacks
DEFAULT BRANCH: master
Ran 21 Sep 2026 11:35AM UTC
Jobs 1
Files 1
Run time 1min
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

21 Sep 2026 11:26AM UTC coverage: 100.0%. First build
35594786767

Pull #10

github

janpaepke
fix(types): type callbacks which always throw as rejections in asynchronous chains

A callback typed `never` (one which always throws) ended a chain as
`never`, even when the chain was already asynchronous at that point,
where the promise actually rejects; an `async` one (typed
`Promise<never>`) vanished from a runIf chain altogether.

The state machine gets a fourth state: a step which never produces a
value ends a synchronous chain as `never`, as before, and an
asynchronous one as a rejection, as the callback then throws inside a
`then`; a step which never resolves is a rejection from the start. The
result matches the equivalent `.then` chain. In a runIf chain a step
which is always null-ish ends the chain the same way, and once the
chain is asynchronous that would put a `Promise<never>` next to the
promise of the null-ish value; as any promise may reject, that adds
nothing, and it is dropped.

apply gets its own helper rather than passing its value through the
fold as a result: the value is what apply returns, so a promise value
with a throwing callback becomes a rejection, while TypeScript keeps
inferring the value from the call's context and passing generic
values through unchanged.
Pull Request #10: Type callbacks which always throw as rejections

14 of 14 branches covered (100.0%)

Branch coverage included in aggregate %.

1 of 1 relevant lines covered (100.0%)

412.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35594786767.1 21 Sep 2026 11:35AM UTC 2
100.0
GitHub Action Run
Source Files on build 35594786767
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35594786767
  • Pull Request #10
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc