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

strongloop / loopback-datasource-juggler / 4665
84%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix-deprecated-pkgs
DEFAULT BRANCH: master
Ran 28 Jun 2018 11:08AM UTC
Jobs 3
Files 35
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
4665

push

travis-ci

bajtos
Fix type definitions for PersistedModel API

Callback's first argument is an optional Error now. Was: required `any`.

PersistedModel methods return `PersistedModel` now. Before this change,
methods were returning `PersistedData` (`PersistedModel | AnyObject`).
The problem with `AnyObject` is that it does not contain any
`PersistedModel` instance data and cannot be assigned to functions
expecting `Partial<PersistedModel>`. As a result, consumers of this API
were forced to either cast the result to `PersistedModel` (which feels
wrong) or deal with the `AnyObject` case (which never happen at
runtime).

Fix definition of `ModelData<T>` to `T | Partial<T>`. Before this
change, `ModelData` allowed any values not related to the actual
model at all, for example arrays.

4304 of 5436 branches covered (79.18%)

Branch coverage included in aggregate %.

6846 of 7886 relevant lines covered (86.81%)

2644.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4665.1 28 Jun 2018 11:10AM UTC 0
83.7
Travis Job 4665.1
2 4665.2 28 Jun 2018 11:08AM UTC 0
83.7
Travis Job 4665.2
3 4665.3 28 Jun 2018 11:09AM UTC 0
83.7
Travis Job 4665.3
Source Files on build 4665
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4665
  • 9c79e836 on github
  • Prev Build on fix/typings (#4663)
  • Next Build on fix/typings (#4666)
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