mljs / distance

Distance functions to compare vectors
https://mljs.github.io/distance/
MIT License
66 stars 4 forks source link

No import for 'tree' export in export { tree }; #14

Closed thespacedeck closed 1 year ago

thespacedeck commented 1 year ago

Upon installing node_modules/ml-distance/lib/similarities.d.ts:1:10 - error TS2304: Cannot find name 'tree'.

seems like it is missing the import for import * as tree from 'ml-tree-similarity';

checkout: https://www.npmjs.com/package/ml-distance?activeTab=code

zreecespieces commented 1 year ago

Can confirm I also am running into this error.

Using what @thespacedeck suggested, I added this line to the top of similarities.d.ts replacing export { tree }; with

export * as tree from 'ml-tree-similarity';

This is allowing my project to build for now until the package is fixed.