Fixed: should attach subdocument defaults when using projection #18#16
Chore: migrate codebase to typescript
BREAKING CHANGE: if using require('mongoose-lean-defaults'), you should update it to require('mongoose-lean-defaults').default (should not be a problem if using import)