mapbox / mapbox-gl-directions

Directions plugin for mapbox-gl-js using Mapbox Directions API.
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
ISC License
235 stars 124 forks source link

Missing TypeScript type definitions for mapbox-gl-directions package #300

Open na0495 opened 1 year ago

na0495 commented 1 year ago

Issue Description

I'm trying to use mapbox-gl-directions on my React TypeScript project, and I want to install type definitions for it using yarn add @types/mapbox__mapbox-gl-directions. However, I found that there aren't any type definitions available for this package.

Expected Behavior

I expected to be able to install type definitions for mapbox-gl-directions using yarn add @types/mapbox__mapbox-gl-directions.

Actual Behavior When I tried to install the type definitions using the above command, I got the following error:

An unexpected error occurred: "https://registry.yarnpkg.com/@types%2fmapbox__mapbox-gl-directions: Not found".

Steps to Reproduce

Create a new React TypeScript project Install mapbox-gl-directions using yarn add mapbox-gl-directions Try to install type definitions using yarn add @types/mapbox__mapbox-gl-directions

Possible Solution

I'm not sure if there's a solution to this issue, but it would be great if someone could create and publish type definitions for mapbox-gl-directions to @types/mapbox__mapbox-gl-directions registry.

Please let me know if there's anything else I can provide to help resolve this issue.