When using MapView.goTo, it always gives Typescript error TS2349: Cannot invoke an expression whose type lacks a call signature. Type '((target: Geometry | Graphic | Graphic | Viewpoint | number | Geometry | MapViewGoToTarget,...' has no compatible call signatures.
The goto function working fine, just this tslint error breaks the build.
Does anyone have similar issues? below is my code:
The typing file is:
goTo(target: number | Geometry | Geometry | Graphic | Graphic | Viewpoint | MapViewGoToTarget, options?: MapViewGoToOptions): IPromise<ViewAnimation>;
Just don't understand why tslint give this error, can someone shed some lights?