Work on mongoose typing