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

mweststrate / immer / 707
98%
master: 99%

Build:
Build:
LAST BUILD BRANCH: github-actions-ci
DEFAULT BRANCH: master
Ran 12 Jan 2019 11:08PM UTC
Jobs 1
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

pending completion
707

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

Jobs
ID Job ID Ran Files Coverage
3 707.3 (NODE_ENV=TEST) 12 Jan 2019 11:08PM UTC 0
97.65
Travis Job 707.3
Source Files on build 707
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #707
  • 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