-
Notifications
You must be signed in to change notification settings - Fork 55
feat(*): Add Typescript type definitions #786
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Giacomo Minighin <[email protected]>
@j4m3sb0mb My apologies that it has taken us so long to get to this. Thank you for your contribution. I would love to get this merged, can you please remove the You can check that the test passes locally by running |
Signed-off-by: Giacomo Minighin <[email protected]>
Signed-off-by: Giacomo Minighin <[email protected]>
@jeromesimeon @radhikakotangoor I'm happy with this, do either of you have input on the type definitions? |
I left some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic contribution. Thanks for much @j4m3sb0mb !
Just a couple of things:
- we'll need a rebase to merge this I'm afraid, due to conflict with the latest version in master (I could take this over, but would prefer if you manage to do it since it's your code)
- I would really love a mini "helloworld.ts" showing how anyone can use this from typescript. This might serve as a minimal test as well
Ok @jeromesimeon where should i put the "helloworld.ts"? |
That's a really good question. I would put it in e.g., |
I'm writing a little example with some functions but I think that for a real test should be used this package: https://github.com/SamVerschueren/tsd |
Hi @j4m3sb0mb it's been a while since I've looked at TypeScript, but what you are suggesting sounds good (we will have to maintain this over time). I think the PR is valuable as is though I think I would be happy with either:
I think it's a bit up to you which of those sound better. Thanks! |
Signed-off-by: Giacomo Minighin [email protected]
Issue #785
Added typescript definitions for ergo-compiler ergo-engine
Changes