node-mongo-tenant icon indicating copy to clipboard operation
node-mongo-tenant copied to clipboard

Add Typescript Support

Open veerjainATgmail opened this issue 5 years ago • 6 comments

Anyone is able to use this library with Typescript?

veerjainATgmail avatar Dec 16 '19 14:12 veerjainATgmail

Hey @veerjainATgmail i did not try, yet. Do you have any concrete issue?

alrik avatar Dec 22 '19 15:12 alrik

@alrik , thanks for the response.👍 TS expects types for bytenent calls. Didnt pursue further.

veerjainATgmail avatar Dec 23 '19 03:12 veerjainATgmail

@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 :)

alrik avatar Dec 28 '19 10:12 alrik

I could really use this right about now.

milesje avatar Sep 09 '20 05:09 milesje

I could really use this right about now.

@milesje could you share your approach? What should I do to get this working with typescript?

froliveira avatar Nov 23 '20 19:11 froliveira

Just for the record, this is a typescript fork of this repo for Mongoose v6: https://github.com/WeAreNova/mongoose-tenant

saqib-ahmed avatar Jun 06 '23 11:06 saqib-ahmed