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

Would be great if you could provide typescript definitions for hydra, hydra-express ... #132

Open
peatidge opened this issue Jun 7, 2017 · 7 comments

Comments

@peatidge
Copy link

peatidge commented Jun 7, 2017

Would be great if you could provide typescript definitions for hydra, hydra-express ...

@peatidge peatidge changed the title Would be great if you could provide typesccript definitions for hydra, hydra-express ... Would be great if you could provide typescript definitions for hydra, hydra-express ... Jun 7, 2017
@cjus
Copy link
Contributor

cjus commented Jun 30, 2017

@peatidge I'm really warming up to this idea! We've been so busy lately that no one has gotten around to this. I'll post a link to this point in our slack channel to see if anyone will take up the task!

@zippyzow
Copy link

zippyzow commented Nov 15, 2018

I'd like to take a stab at this. Is this headed in the right direction?

master...zippyzow:typescript-declarations

@cjus
Copy link
Contributor

cjus commented Nov 15, 2018

@zippyzow The current thought is to build Hydra 2.0 using TypeScript. But that would be for Hydra 2 and not Hydra 1.x - so it definitely makes sense to do that for 1.x in prep for 2. Thanks for tackling this!

@abdoolly
Copy link

Hello all,
I have made declarations for Hydra and Hydra express and added a layer above them to allow for the use of controllers , middlewares and dependency injection (using inversify js)

Also if you want to use the declarations alone the interfaces are exposed so you can use them however you wish

this is the package that provide all that
https://www.npmjs.com/package/hydra-promoted

Also you can have a full installed architecture in typescript so you don't have to do anywork
you can see that starter project.
https://github.com/abdoolly/ts-hydraExpress

I hope this helps anybody and I am happy to help
Please give me feedback or raise any issues.
Thanks

@JustusFluegel
Copy link

I wrote definitions for hydra and hydra-express too, but currently just using them in my private projects, maybe I rework them a bit and add a pr to DefinitelyTyped.

@JustusFluegel
Copy link

Or here If you are welcome to add them to the package directly

@cjus
Copy link
Contributor

cjus commented Nov 22, 2020

@Technikkeller that would be greatly appreciated. Let's chat on Hydra slack.

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