microsoft / vscode-languagedetection

An npm package that uses ML to detect source code languages
MIT License
116 stars 12 forks source link

Invalid import in `d.ts` #26

Open mjbvz opened 3 months ago

mjbvz commented 3 months ago

From https://github.com/microsoft/vscode/pull/225145

Trying to enable the new noUncheckedSideEffectImports typescript flag, I noticed that index.d.ts contains the import:

import '@tensorflow/tfjs-backend-cpu';

Since there isn't a dependency on @tensorflow, this import can't be resolved and should likely be removed