mongoist / mongoist

Mongodb driver inspired by mongojs built with async/await in mind
ISC License
306 stars 23 forks source link

feat: add typescript type declarations #61

Open ttacon opened 3 years ago

ttacon commented 3 years ago

This commit does not attempt to add anything beyond an initial pass at TS types for this module. This file was generated by modifying and running flow-to-ts and then correcting the default exports to a more typescript style setup. I've not spent a ton of time in TS yet, so I am very open to comments or concerns, or even just telling me that this is plain wrong. If this file seems workable to most folks, I'll put up the other final scaffolding to correctly export this types from this module.

Cheers!