Update mongoose.d.ts

Add generic typing