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

Parameters implicitly have an 'any' type #61

Closed
Mocha-- opened this issue Mar 3, 2017 · 3 comments
Closed

Parameters implicitly have an 'any' type #61

Mocha-- opened this issue Mar 3, 2017 · 3 comments

Comments

@Mocha--
Copy link

Mocha-- commented Mar 3, 2017

Hi,

I just got some errors when I imported { UIRouterModule } from 'ui-router-ng2'(please see the attachment).
ui-router-error

If anyone knows what happened, please help me.

Thanks,

@elboman
Copy link
Member

elboman commented Mar 3, 2017

Hi,
The core lib has few values which are implicitly of type any. I guess your tsconfig doesn't allow implicit any values, hence the error.

In fact this problem also appears in the react version: ui-router/react#29

A temporary solution would be to set "noImplicitAny": false in your config. The long term solution is to make a PR for the core to explicitly set those values to any.

@christopherthielen
Copy link
Member

there's also skipLibCheck in typescript 2.x https://www.typescriptlang.org/docs/handbook/compiler-options.html

We intend to make the lib noImplicitAny compatible. We just need to add a little bit of tooling that does the check before we publish.

@Mocha--
Copy link
Author

Mocha-- commented Mar 5, 2017

Thanks, help a lot.

I'll close this issue.

@Mocha-- Mocha-- closed this as completed Mar 5, 2017
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

3 participants