oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

Error when using CustomData #290

Closed arthurfrancioni closed 7 years ago

arthurfrancioni commented 7 years ago

It works fine but Visual Studio code is showing this error

Versions: "angular/animations": "^4.1.2", "angular/common": "^4.0.0", "angular/compiler": "^4.0.0", "angular/core": "^4.0.0", "angular/forms": "^4.0.0", "angular/http": "^4.0.0", "angular/platform-browser": "^4.0.0", "angular/platform-browser-dynamic": "^4.0.0", "angular/router": "^4.0.0", "rxjs": "^5.1.0"

[ts] Class 'CustomData' incorrectly implements interface 'CompleterData'. Types of property 'lift' are incompatible. Type '(operator: Operator<CompleterItem[], R>) => Observable<CompleterItem[]>' is not assignable to type '(operator: Operator<CompleterItem[], R>) => Observable'. Type 'Observable<CompleterItem[]>' is not assignable to type 'Observable'. Type 'CompleterItem[]' is not assignable to type 'R'.

untitled-1 fw

Can someone help me?

oferh commented 7 years ago

duplicate of #268