You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition is too broad, property definitions are ignored, IntelliSense is not working, and there are no property suggestions (other than those from Promise type):
Is there an existing issue for this?
Current behavior
The definition is too broad, property definitions are ignored, IntelliSense is not working, and there are no property suggestions (other than those from
Promise
type):Minimum reproduction code
https://tsplay.dev/wXv78m
Steps to reproduce
npm i @nestjs/mongoose
import type { MongooseModuleOptions } from '@nestjs/mongoose/dist/interfaces/mongoose-options.interface'
MongooseModuleOptions
Expected behavior
The definition is specific, property definitions are picked up, and IntelliSense is working:
Package version
9.2.2
mongoose version
No response
NestJS version
No response
Node.js version
18.15.0
In which operating systems have you tested?
Other
This is specifically a typings issue. The only fix needed is to remove
extends Record<string, any>
from here:https://github.com/nestjs/mongoose/blob/master/lib/interfaces/mongoose-options.interface.ts#L6
The text was updated successfully, but these errors were encountered: