Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carousel.component.ts(103,11): error TS7030: Not all code paths return a value. #263

Closed
sschueller opened this issue Mar 9, 2016 · 2 comments

Comments

@sschueller
Copy link

My tslint (angular2-seed) comes with up with the following error:

node_modules/ng2-bootstrap/components/carousel/carousel.component.ts(103,11): error TS7030: Not all code paths return a value.

It appears the function getSlideByIndex in node_modules/ng2-bootstrap/components/carousel/carousel.component.ts does not always return:

  private getSlideByIndex(index:number) {
    let len = this.slides.length;
    for (let i = 0; i < len; ++i) {
      if (this.slides[i].index === index) {
        return this.slides[i];
      }
    }
  }
@valorkin
Copy link
Member

yeap, I am currently working on supporting
tslint and ng2lint

@valorkin
Copy link
Member

same as #309
closing this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants