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

preactjs / preact / 7477
100%

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

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

Jobs
ID Job ID Ran Files Coverage
1 7477.1 07 Mar 2020 11:40AM UTC 0
99.59
Travis Job 7477.1
Source Files on build 7477
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7477
  • a09eff02 on github
  • Prev Build on master (#7474)
  • Next Build on master (#7480)
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