M
M
mletov2018-04-28 15:41:01
Angular
mletov, 2018-04-28 15:41:01

What is the error (TS) Member 'rows' implicitly has an 'any[]' type.?

Which day I struggle with Angular and TypeScript.
So I downloaded the ngx-datatable module for Angular from github, copied it to the app folder.
And then I got a sheet of errors.
5ae46a064e939636466882.jpeg
There were similar errors when connecting modules to React, the types were also not found.
Smart people have already told me that in case of such an error, it is necessary to determine the type in the code.
But this is if my code is self-written. I immediately copied a third-party module, I don’t even refer to it in any way, it’s unlikely that its developer assumed that additional types need to be defined.
Please, tell me, at least from what side to approach the solution of such problems? And not only the ngx-datatable model is of interest, but rather the general approach. With other modules, the situation is similar, only copied the module - already a sheet of errors. Perhaps you need to install some more modules? But if so, where to look for the missing modules.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Kubesh, 2018-04-29
@Basters

Excuse me, why do you "download" and "copy"? After all, you must use any available package manager to work with packages. When installing the package, it will install both the necessary types and everything else. In addition, it is not clear what is going on in your tsconfig, in the sense that it is not at all clear which directories are included.
In general, now it looks extremely wrong, and for us it is like a fortune-telling ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question