node-mongo-tenant
node-mongo-tenant copied to clipboard
Add Typescript Support
Anyone is able to use this library with Typescript?
Hey @veerjainATgmail i did not try, yet. Do you have any concrete issue?
@alrik , thanks for the response.👍 TS expects types for bytenent calls. Didnt pursue further.
@veerjainATgmail All right, i consider this a feature request. In order to use mongo-tenant with typescript, we need to define the types. Here is some documentation on how to define mongoose plugin types.
I can't give an ETA on when we can implement this, so any contribution is very welcome :)
I could really use this right about now.
I could really use this right about now.
@milesje could you share your approach? What should I do to get this working with typescript?
Just for the record, this is a typescript fork of this repo for Mongoose v6: https://github.com/WeAreNova/mongoose-tenant