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

gulpjs / plugin-error / 39
98%

Build:
DEFAULT BRANCH: master
Ran 23 Jan 2018 10:57PM UTC
Jobs 5
Files 1
Run time 58min
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
39

push

travis-ci

web-flow
Fix: Update types to support union-type arguments (Fixes #10)

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

31 of 36 branches covered (86.11%)

Branch coverage included in aggregate %.

85 of 89 relevant lines covered (95.51%)

85.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39.1 23 Jan 2018 10:57PM UTC 0
92.0
Travis Job 39.1
2 39.2 23 Jan 2018 10:57PM UTC 0
92.0
Travis Job 39.2
3 39.3 23 Jan 2018 10:57PM UTC 0
92.0
Travis Job 39.3
4 39.4 23 Jan 2018 10:58PM UTC 0
92.0
Travis Job 39.4
5 39.5 23 Jan 2018 10:58PM UTC 0
92.8
Travis Job 39.5
Source Files on build 39
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #39
  • eae2f4ca on github
  • Prev Build on master (#23)
  • Next Build on master (#40)
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

© 2025 Coveralls, Inc