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

Fix TypeScript errors #15

Closed
AlexanderLukin opened this issue Feb 6, 2017 · 2 comments
Closed

Fix TypeScript errors #15

AlexanderLukin opened this issue Feb 6, 2017 · 2 comments

Comments

@AlexanderLukin
Copy link

Now when I try to compile my project with amcharts3-angular2 directive, I run into batch of TypeScript compilation issues such as

dist\tmp\app\landing\amcharts.directive.ts(15,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(21,21): error TS7006: Parameter 'x' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(26,5): error TS7017: Index signature of object type implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(32,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(46,15): error TS7006: Parameter 'x' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(64,23): error TS7006: Parameter 'x' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(64,26): error TS7006: Parameter 'y' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(82,24): error TS7006: Parameter 'x' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(82,27): error TS7006: Parameter 'y' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(105,16): error TS7006: Parameter 'x' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(109,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(109,21): error TS7006: Parameter 'y' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(137,31): error TS7006: Parameter 'chart' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(137,38): error TS7006: Parameter 'listeners' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(150,28): error TS7006: Parameter 'chart' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(150,35): error TS7006: Parameter 'oldObj' implicitly has an 'any' type.
dist\tmp\app\landing\amcharts.directive.ts(150,43): error TS7006: Parameter 'newObj' implicitly has an 'any' type.

I assume thet those issues should be fixed.

@Pauan
Copy link
Collaborator

Pauan commented Mar 25, 2017

This should be fixed with amcharts3-angular2 version 1.2.0, thanks for the report!

@Pauan Pauan closed this as completed Mar 25, 2017
@Pauan
Copy link
Collaborator

Pauan commented Mar 25, 2017

You can upgrade to the latest version of amcharts3-angular2 by deleting your node_modules/amcharts3-angular2 folder and then running npm install

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