jdalrymple / gitbeaker

🦊🧪 A comprehensive and typed Gitlab SDK for Node.js, Browsers, Deno and CLI
Other
1.5k stars 283 forks source link

the export of @gitbaker/core was overwritten by the export of @gitbaker/rest #3604

Open s952787097 opened 1 week ago

s952787097 commented 1 week ago

Description

Reproduction steps:

When I was creating a Gitlab REST API instance, I needed to extract some methods according to their functionality. However, when setting function parameter types, I encountered a problem, as shown in the following figure

image

I checked the d.ts file and found that the export of @ gitbaker/core was overwritten by the export of @ gitbaker/rest

image

Temporary plan:

Through the following method, I temporarily installed @ gitbaker/core in my project to solve the issue of being overwritten. However, I don't think this is a very reasonable way of using it

image

Suggestion:

Can the d.ts file be modified to export CORE through @ gitbaker/rest

image

Checklist