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

strongloop / loopback-next / 18760
76%

Build:
DEFAULT BRANCH: master
Ran 29 May 2020 09:23AM UTC
Jobs 1
Files 649
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
18760

push

travis-ci-com

bajtos
fix(repository): fix DynamicModelCtor type to correctly preserve Props

Before this change, the following code would create an instance
with the type of the base model class, ignoring custom model properties:

```ts
const Product = defineModelClass<typeof Model, {name: string}>(
  Model,
  definition,
);
const p = new Product();
// p has type Model now
```

This patch fixes the problem by changing the order in which constructor
functions are defined in `DynamicModelCtor`, so that the compiler always
picks the constructor returning `Base & Props`.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>

5538 of 6607 branches covered (83.82%)

Branch coverage included in aggregate %.

14959 of 15813 relevant lines covered (94.6%)

1101.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18760.1 (TASK=test) 29 May 2020 09:23AM UTC 0
91.42
Travis Job 18760.1
Source Files on build 18760
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #18760
  • 927789e2 on github
  • Prev Build on master (#18750)
  • Next Build on master (#18775)
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