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

excaliburjs / Excalibur / 8826253285
89%

Build:
DEFAULT BRANCH: main
Ran 25 Apr 2024 02:48AM UTC
Jobs 1
Files 211
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

25 Apr 2024 02:44AM UTC coverage: 91.316% (+0.04%) from 91.278%
8826253285

push

github

web-flow
fix: Make Entity Constructor's `components` option optional (#3027)

Had a conversation here https://discord.com/channels/1195771303215513671/1232877562804305920

```
From example in https://excaliburjs.com/docs/entities:
const entityWithName = new ex.Entity({name: 'Named Entity'});


No overload matches this call.
  Overload 1 of 2, '(options: EntityOptions<any>): Entity<any>', gave the following error.
    Argument of type '{ name: string; }' is not assignable to parameter of type 'EntityOptions<any>'.
      Property 'components' is missing in type '{ name: string; }' but required in type 'EntityOptions<any>'.
  Overload 2 of 2, '(components?: any[] | undefined, name?: string | undefined): Entity<any>', gave the following error.
    Object literal may only specify known properties, and 'name' does not exist in type 'any[]'.ts(2769)
Entity.d.ts(58, 5): 'components' is declared here.


It seems that components is not optional here

export interface EntityOptions<TComponents extends Component> {
    name?: string;
    components: TComponents[];
}

```

Changes:
- Make `components` options optional here.

5439 of 6883 branches covered (79.02%)

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

12030 of 13174 relevant lines covered (91.32%)

24671.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8826253285.1 25 Apr 2024 02:48AM UTC 0
91.32
GitHub Action Run
Source Files on build 8826253285
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8826253285
  • 43af8cb3 on github
  • Prev Build on main (#8826191433)
  • Next Build on main (#8826386872)
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