-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Types] properties like "caster" are not typed (SingleNestedPath) #10418
Comments
@hasezoey mongoose.Schema.Types.Embedded does not extend |
sorry, i just noticed it has many (if not even all) properties that an
i dont have an use-case for any of them at the moment, i just saw them that they are untyped, but still accessible from the outside and could be useful to others (at least |
You might be mixing up the subdocument schematype and the actual subdocument type. Subdocuments are event emitters, but subdocument schematypes are not. |
that might be true, so what is and just to clarify, with subdocument-schematype you mean |
And yes, the subdocument schematype does have those properties, but they're not meant to be user-facing. If there's a reason for them to be user facing I'm happy to add them to the TS bindings. |
Do you want to request a feature or report a bug?
types
What is the current behavior?
the options are un-typed
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
the properties to be typed
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
mongoose: 5.13.2
options to do:
mongoose.Schema.Types.Embedded
should extendsEventEmitter
path
should be typedbase
should be typed'$isSingleNested'
should also be typedThe text was updated successfully, but these errors were encountered: