kedoska / engine-blackjack

Javascript library to make blackjack engines
GNU General Public License v2.0
33 stars 29 forks source link

Add TypeScript type definitions #59

Closed jmolero closed 5 years ago

jmolero commented 5 years ago

Thanks for writing this engine. I've been using it lately and wrote these types definition so I can use it in a TypeScript project. It's based on the current flow types.

At first I looked on contributing it to the DefinitelyTyped project but it's easier to add it this way and it should also work without needing to install an additional module.

I tried it for a while and seems to work well so far but it may need some minor adjustments. I hope you find it useful.

kedoska commented 5 years ago

@jmolero thanks for your help :+1: