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

mweststrate / immer / 707 / 3
98%
master: 99%

Build:
Build:
LAST BUILD BRANCH: github-actions-ci
DEFAULT BRANCH: master
Ran 12 Jan 2019 11:08PM UTC
Files 6
Run time 0s
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

12 Jan 2019 11:00PM UTC coverage: 97.647%. First build
NODE_ENV=TEST

push

travis-ci

aleclarson
fix(ts): reorder generic parameters of IProduce

This makes the different call signatures of `produce` have a similar order of generic parameters when possible.

Before:
  produce<Base, [number, string]>((draft, num, str) => {}) // no default
  produce<Base, Draft<Base>, [number, string]>((draft, num, str) => {},
    defaultValue)

After:
  produce<Base, [number, string]>((draft, num, str) => {}) // no default
  produce<Base, [number, string]>((draft, num, str) => {}, defaultValue)

As you can see, the draft type is no longer the 2nd generic parameter of
curried producers with a default value, which is just like the call
signature for curried producers without a default value.

This also moves the `D` generic parameter of `produce(base, recipe)` to
the end, so you can specify the `Return` parameter easier.

289 of 299 branches covered (96.66%)

Branch coverage included in aggregate %.

292 of 296 relevant lines covered (98.65%)

513.67 hits per line

Source Files on job 707.3 (NODE_ENV=TEST)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 575
  • Travis Job 707.3
  • 05157afa on github
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