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

BigstickCarpet / ono / 115 / 4
88%
master: 0%

Build:
Build:
LAST BUILD BRANCH: v4.0.8
DEFAULT BRANCH: master
Ran 29 Aug 2018 01:14AM UTC
Files 2
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

29 Aug 2018 01:13AM UTC coverage: 86.082% (+1.2%) from 84.9%
KARMA=true

Pull #5

travis-ci

web-flow
Fix typedef

Since `module.exports` is actually overwritten by the function returned by `create(Error)`, this is not an es6-module compatible scenario.
With this change,
```ts
import * as ono from 'ono'
throw ono(new Error('ono'))
```
and, perhaps more correctly
```ts
import ono = require('ono')
throw ono(new Error('ono'))
```
typecheck and generate correct code.

Before this change, only
```ts
import ono from 'ono'
throw ono(new Error('ono'))
```
and
```ts
import * as themodule from 'ono'
throw themodule.default(new Error('ono'))
```
would typecheck, both of which would throw at runtime by trying to call `ono.default()` or `ono.default.syntax()`, etc...
Pull Request #5: Fix typedef

82 of 100 branches covered (82.0%)

167 of 194 relevant lines covered (86.08%)

378.72 hits per line

Source Files on job 115.4 (KARMA=true)
  • 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 113
  • Travis Job 115.4
  • 0149bcb0 on github
  • Prev Job for KARMA=true on patch-1 (#113.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

© 2025 Coveralls, Inc