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

preactjs / preact / 7477 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 07 Mar 2020 11:40AM UTC
Files 28
Run time 2s
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

07 Mar 2020 11:37AM UTC coverage: 99.587%. Remained the same
7477.1

push

travis-ci

web-flow
Fix useErrorBoundary hook callback type (#2397)

Fixes TypeScript typings for useErrorBoundary to match documentation
and actual code[1], allowing to get error through the parameter of
its callback[2].

Example of previously failing code:

```
const [error] = useErrorBoundary(error => {
//                               ^~~~~~~~~~
// Argument of type '(error: any) => void' is not assignable to
// parameter of type '() => void | Promise<void>'.ts(2345)
//
	console.log(error);
});
```

[1]: https://git.io/JvrIP (/hooks/src/index.js:243:44)
[2]: https://preactjs.com/guide/v10/hooks/#useerrorboundary

893 of 909 branches covered (98.24%)

482 of 484 relevant lines covered (99.59%)

782.56 hits per line

Source Files on job 7477.1
  • 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 2628
  • Travis Job 7477.1
  • a09eff02 on github
  • Prev Job for on master (#7474.1)
  • Next Job for on master (#7480.1)
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