Closed Narretz closed 3 years ago
Good catch, I'll look into this fix over the weekend! For the time being, you should be able to pass the --no-populate-overload
flag to avoid augmenting populations (if those errors above are the only issue). Will get back to you soon!
Thanks! These errors are the only ones, so the option should fix it as a workaround.
Fixed in 8.3.5! Added Typescript as a peer dependency.
See this repo: https://github.com/Narretz/mongoose-tsgen-issues/tree/typescript (make sure to check out the typescript branch)
I don't think it's documented explicitly which typescript versions are supported, but the package.json itself requires ^3.9.7. However, if your own code is requiring typescript 3.9.7, it won't work, because te generated type will throw a bunch of errors: