googleapis / googleapis/google-api-nodejs-client

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

Open
#3,293 0 comments 9 reactions 0 assignees View on GitHub
priority: p2 type: bug
Dominant language
TypeScript
Stars
12.2k
Forks
2k
Avg merge
1d 9h
Merged PRs (30d)
24

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.