googleapis / nodejs-common

🚀🐢 A set of classes and utilities used in Google npm modules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add proper overloads for all promisified functions

JustinBeckwith opened this issue · comments

Today we rely on util.promisifyAll to provide callback and promise style implementations. While convenient at development time, it does lead to problems with TypeScript typing. We should add proper overloads, and move towards a more async style for internal functions in the process.