pnxtech / hydra

A light-weight library for building distributed applications such as microservices
https://www.hydramicroservice.com
MIT License
645 stars 54 forks source link

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

Open peatidge opened 7 years ago

peatidge commented 7 years ago

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

cjus commented 7 years ago

@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 commented 5 years ago

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

https://github.com/flywheelsports/hydra/compare/master...zippyzow:typescript-declarations

cjus commented 5 years ago

@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 commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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

cjus commented 3 years ago

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