googleapis / googleapis/google-api-nodejs-client

'await' has no effect on the type of this expression - GaxiosPromise

Offen
#3,293 0 Kommentare 9 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
priority: p2 type: bug
Vorherrschende Sprache
TypeScript
Sterne
12.2k
Forks
2k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
24

Beschreibung

1) Is this a client library issue or a product issue?
This is the client library for googleapis, using the drive api to list and delete.

2) Did someone already solve this?
Can't find any discussion/solutions in the GitHub repos and Stackoverflow

Hello, I can't seem to understand why TS is throwing this warning on the GaxiosPromise method, maybe because of the overload but when I check the signature it shows me the one with the GaxiosPromise type in return. So I wonder what could cause this.

#### Environment details

- OS: Arch
- Node.js version: 16.12
- npm version: 8.1
- `googleapis` version: 122

#### Steps to reproduce

![image](https://github.com/googleapis/google-api-nodejs-client/assets/16087932/bee03649-434d-436e-af60-f6246a90ce9e)

Thanks!

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reproducing the Drive list and delete example with googleapis 122 on Node.js 16.12, then inspect the GaxiosPromise return type and overloads involved. Done means identifying the source of the TypeScript warning and recording or implementing a client-library correction, with a regression check if the repository exposes one.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
nodejs, typescript
Bereich
api
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

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