Project API Types are not exported at the top (module) level.

Offen
#652 9 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
nodejs, typescript
Bereich
api

Rechercherichtung

The payload names no source file. Start with the top-level module entry that re-exports the Accounting API types, then find where the Projects API types are imported from deeper in the module tree. Check whether the SDK is generated from XeroAPI/Xero-OpenAPI, since the fix may belong upstream. Done when the Projects types can be imported from the top-level module, like the Accounting types.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

SDK you're using (please complete the following information):

  • Version 4.36.0

Is your feature request related to a problem? Please describe.
All of the types for the Projects API are imported deeper in the module dependencies. Not only is this harder to manage, but it causes issues for some project build types (specifically Next.JS and Vercel):

image

Describe the solution you'd like
Like the Accounting API, I would like these exports to be available at the top-level of the module.

Describe alternatives you've considered
The main alternative has been to import them in the current way. This works fine for some projects, but I am having trouble with Node libraries that use these types.

Vorherrschende Sprache
TypeScript
Sterne
264
Forks
177
Ø Merge
10 Std. 5 Min.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus XeroAPI/xero-node

Alle Issues in XeroAPI/xero-node

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.