SchemaDefinitionProperty doesn't work with number
type
#9863
Labels
typescript
Types or Types-test related issue / Pull Request
Milestone
Do you want to request a feature or report a bug?
Bug (typescript)
What is the current behavior?
Sample code:
The last line gives me these errors:
Error goes away if I change the interface definition to
But tslint's recommended rules include banning the usage of the
Number
type.If the current behavior is a bug, please provide the steps to reproduce.
Code provided above
What is the expected behavior?
The interface can be defined with
number
type and typescript does not throw errors.What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node v12.15.0, mongoose v5.11.11
The text was updated successfully, but these errors were encountered: