googleapis / googleapis/google-api-nodejs-client

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

Aperta
#3,293 0 commenti 9 reazioni 0 assegnatari Vedi su GitHub
priority: p2 type: bug
Lingua principale
TypeScript
Stelle
12.2k
Fork
2k
Merge medio
1g 9h
PR unite (30g)
24

Descrizione

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!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.