maptiler / maptiler-geocoding-control

The Javascript & TypeScript Map Control component for MapTiler Geocoding service! Easy to be integrated into any JavaScript mapping application.
https://maptiler.com/cloud/geocoding
BSD 3-Clause "New" or "Revised" License
28 stars 4 forks source link

fix: Expose /types declaration file #18

Closed Kapcash closed 9 months ago

Kapcash commented 10 months ago

Objective

I need to import types from the file types.d.ts. For instance, as stated in this official documentation import 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.