We’re migrating a code base to use the async/await, and we have found some developers accidentally create functions returning promise<promise<...>> because they forget to use await at some point.
I would like to have a check in our pipeline that finds those promise<promise<'a>> and generate a warning in the PR.
Is there a way to get the type info from a module using a cli tool?