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

gulpjs / plugin-error / 38
98%

Build:
DEFAULT BRANCH: master
Ran 23 Jan 2018 01:11PM UTC
Jobs 5
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

pending completion
38

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%)

85.0 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
index.js
Jobs
ID Job ID Ran Files Coverage
1 38.1 23 Jan 2018 01:11PM UTC 0
92.0
Travis Job 38.1
2 38.2 23 Jan 2018 01:11PM UTC 0
92.0
Travis Job 38.2
3 38.3 23 Jan 2018 01:11PM UTC 0
92.0
Travis Job 38.3
4 38.4 23 Jan 2018 01:12PM UTC 0
92.0
Travis Job 38.4
5 38.5 23 Jan 2018 01:12PM UTC 0
92.8
Travis Job 38.5
Source Files on build 38
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #38
  • Pull Request #13
  • PR Base - master (#23)
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