mljs / global-spectral-deconvolution

Global Spectra Deconvolution + Peak optimizer
http://mljs.github.io/global-spectral-deconvolution/
MIT License
9 stars 8 forks source link

Check-type error #73

Closed wadjih-bencheikh18 closed 2 years ago

wadjih-bencheikh18 commented 2 years ago

While using the new version 9.0.0 i got this result :

Error: node_modules/ml-gsd/lib/post/joinBroadPeaks.d.ts(3,43): error TS7016: Could not find a declaration file for module 'ml-spectra-fitting'. '/home/runner/work/spectra-processing/spectra-processing/node_modules/ml-spectra-fitting/lib/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/ml-spectra-fitting if it exists or add a new declaration (.d.ts) file containing declare module 'ml-spectra-fitting'; Error: node_modules/ml-gsd/lib/post/optimizePeaks.d.ts(3,43): error TS7016: Could not find a declaration file for module 'ml-spectra-fitting'. '/home/runner/work/spectra-processing/spectra-processing/node_modules/ml-spectra-fitting/lib/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/ml-spectra-fitting if it exists or add a new declaration (.d.ts) file containing declare module 'ml-spectra-fitting';

while the version 8.0.0 don't have this error

wadjih-bencheikh18 commented 2 years ago

@lpatiny is it fixed? just to be able to use the lastest version

stropitek commented 2 years ago

You don't have to wait for this to be fixed to continue working

Just add skipLibCheck: true to your project's tsconfig file

wadjih-bencheikh18 commented 2 years ago

yes i didn't wait i'm just using an old version 8.0.0

lpatiny commented 2 years ago

Should be fixed by https://github.com/mljs/global-spectral-deconvolution/commit/42a54fbd907055d233b9b43c85344823f3551bad