ts-mongoose
ts-mongoose copied to clipboard
import { Type } from "ts-mongoose" throw errors in VSCode IDE
When I am trying to set Type for my Schema field, I got following errors in my IDE:
Property 'optionalString' does not exist on type
Expected 0 arguments, but got 1.
But no errors is thrown with tsc command, and also the code works fine when the project is built.
So, I am asking why the { Type } would cause the ide throws errors?
Would be the node_modules folder's Typescript version doesn't match the Ide Typescript Version?
Would be the node_modules folder's Typescript version doesn't match the Ide Typescript Version?
That would be my first guess. Have you fixed it somehow on your side?