Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Typescript Support #56

Open
veerjainATgmail opened this issue Dec 16, 2019 · 6 comments
Open

Add Typescript Support #56

veerjainATgmail opened this issue Dec 16, 2019 · 6 comments

Comments

@veerjainATgmail
Copy link

veerjainATgmail commented Dec 16, 2019

Anyone is able to use this library with Typescript?

@alrik
Copy link
Contributor

alrik commented Dec 22, 2019

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

@veerjainATgmail
Copy link
Author

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

@alrik
Copy link
Contributor

alrik commented Dec 28, 2019

@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 alrik changed the title [Help] Typescript Support? Add Typescript Support Dec 28, 2019
@milesje
Copy link

milesje commented Sep 9, 2020

I could really use this right about now.

@froliveira
Copy link

I could really use this right about now.

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

@saqib-ahmed
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants