You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
27 type Estimator = DecisionTreeClassifier | DecisionTreeRegression;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/ml-random-forest/types/types.d.ts:27:47 - error TS2304: Cannot find name 'DecisionTreeRegression'.
27 type Estimator = DecisionTreeClassifier | DecisionTreeRegression;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/ml-random-forest/types/types.d.ts:29:36 - error TS2689: Cannot extend an interface 'RandomForestBaseOptions'. Did you mean 'implements'?
29 class RandomForestBase extends RandomForestBaseOptions {
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/ml-random-forest/types/types.d.ts:175:5 - error TS2666: Exports and export assignments are not permitted in module augmentations.
i imported the lib in my backend project but the types.d.ts file is causing compile errors.
`node_modules/ml-random-forest/types/types.d.ts:25:6 - error TS1036: Statements are not allowed in ambient contexts.
25 };
~
node_modules/ml-random-forest/types/types.d.ts:27:22 - error TS2304: Cannot find name 'DecisionTreeClassifier'.
27 type Estimator = DecisionTreeClassifier | DecisionTreeRegression;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/ml-random-forest/types/types.d.ts:27:47 - error TS2304: Cannot find name 'DecisionTreeRegression'.
27 type Estimator = DecisionTreeClassifier | DecisionTreeRegression;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/ml-random-forest/types/types.d.ts:29:36 - error TS2689: Cannot extend an interface 'RandomForestBaseOptions'. Did you mean 'implements'?
29 class RandomForestBase extends RandomForestBaseOptions {
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/ml-random-forest/types/types.d.ts:175:5 - error TS2666: Exports and export assignments are not permitted in module augmentations.
175 export { RandomForestClassifier, RandomForestRegression }
~~~~~~
Found 5 error(s).`
it works fine when i rename the types file to types.ts but it's just temporary.
Note: The library works fine in my front end js project.
The text was updated successfully, but these errors were encountered: