pnxtech / hydra

A light-weight library for building distributed applications such as microservices

Home Page:https://www.hydramicroservice.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

peatidge opened this issue · comments

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

@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!

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

master...zippyzow:typescript-declarations

@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!

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

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.

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

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