I need to import types from the file types.d.ts. For instance, as stated in this official documentationimport type { MapController } from '@maptiler/geocoding-control/types';.
Description
I export the path so typescript know toward which file the import is leading to. So I can import the types defined here.
Note: I also fixed the vanilla export, which was wrongly using the attribute types instead of import, like the other modules.
Acceptance
I updated the package.json locally from the node_modules and this fixed my issue.
Objective
I need to import types from the file
types.d.ts
. For instance, as stated in this official documentationimport type { MapController } from '@maptiler/geocoding-control/types';
.Description
I export the path so typescript know toward which file the import is leading to. So I can import the types defined here.
Note: I also fixed the
vanilla
export, which was wrongly using the attributetypes
instead ofimport
, like the other modules.Acceptance
I updated the
package.json
locally from the node_modules and this fixed my issue.