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

thiagobustamante / typescript-ioc / 96
91%
master: 93%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/handlebars-4.5.3
DEFAULT BRANCH: master
Ran 08 Feb 2019 04:58PM UTC
Jobs 1
Files 2
Run time 45s
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
96

Pull #47

travis-ci

web-flow
Add stronger typing to Container.get() via usage of generics

I originally tried to use `new(...args: Array<any>): T`, but this doesn't work for abstract classes because abstract constructors don't match that type signature.

So, after seeing https://stackoverflow.com/questions/36886082/abstract-constructor-type-in-typescript#38642922, it looks like the type `Function & {prototype: T}` encompasses both concrete and abstract classes and should cover all use cases
Pull Request #47: Add stronger typing to Container.get() via usage of generics

58 of 70 branches covered (82.86%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

185 of 196 relevant lines covered (94.39%)

34.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 96.1 08 Feb 2019 04:58PM UTC 0
91.35
Travis Job 96.1
Source Files on build 96
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #96
  • Pull Request #47
  • PR Base - master (#95)
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