Type definition for Connection.prototype.createCollections() not in connections.d.ts #14279
Closed
2 tasks done
Labels
typescript
Types or Types-test related issue / Pull Request
Milestone
Prerequisites
Mongoose version
8.1.0
Node.js version
n/a
MongoDB server version
n/a
Typescript version (if applicable)
5.x
Description
[Connection.prototype.createCollections()] (https://mongoosejs.com/docs/api/connection.html#Connection.prototype.createCollections()), isn't visible to Typescript. The definition wasn't added to connection.d.ts in the PR for the feature: #13324.
Steps to Reproduce
Install latest version of mongoose (8.1.0), see that the connection.createCollections isn't in the type definition.

Confirm by visiting the source code: https://github.com/Automattic/mongoose/blob/master/types/connection.d.ts
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: