Closed yuuri111 closed 1 year ago
Hey @yuuri111, thanks for submitting. The library doesn't currently have any handling for aliased fields, which is why its being typed as any. I dont think it should be too hard to add, will keep you updated!
Fix is live in v9.2.6 🚀
Hello. I am having issues trying to set an alias.
When setting an alias, I believe the type becomes 'any'. Is there a way to set the type to the one specified by 'type'?
ex) models/test.ts
mongoose-types.ts