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

gulpjs / plugin-error / 38 / 5
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 23 Jan 2018 01:12PM UTC
Files 1
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

23 Jan 2018 01:10PM UTC coverage: 92.8% (+0.8%) from 92.0%
38.5

Pull #13

travis-ci

web-flow
Update types to support union-type arguments

This commit updates the signature of the `PluginError` constructor to
loosen the constraints on the parameters in order to support union types
while keeping inference on custom properties.
This is a semver minor update (fix).

This allows for example to use the pattern below:
```
function createPluginError(error: Error | string) {
  return new PluginError("test", error);
}
```
(The tests were updated with more complex cases)

See the discussions in #10 and #11 for details.

- Closes gulpjs/plugin-error#10
- Closes gulpjs/plugin-error#11

/cc @gucong3000
Pull Request #13: Update types to support union-type arguments

31 of 36 branches covered (86.11%)

Branch coverage included in aggregate %.

85 of 89 relevant lines covered (95.51%)

17.09 hits per line

Source Files on job 38.5
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 38
  • Travis Job 38.5
  • 66c38f9e on github
  • Prev Job for on master (#23.4)
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