Reputation: 8328
I would like to install the types when using tensorflow/tfjs-node
as I'm using Typescript.
I installed it via npm install @tensorflow/tfjs-node
But non of them are working to install the typings:
npm install --save @types/tensorflow/tfjs-node
npm install --save @types/tfjs-node
Upvotes: 1
Views: 2470
Reputation: 25280
You don't need to install the types separately as they come already bundled with the main repository.
To remove the old typings from @types/...
use npm uninstall
. After that, When using TypeScript and importing the data via import
it should automatically pick up the correct types.
Upvotes: 2