The type for listDatabases() is Promise<string[] | Document []>, neither of which match the actual result of what is returned when coercing the result to “any”.
Hi and yes, I can confirm this. Basically the response to the client.db().admin().listDatabases() request has not changed compared to previous versions but the typescript-types provided by the new driver are entirely wrong. I’ve tried version 4.1.2. How to deal with this? Is there any remedy in sight?
thx, Thomas.