jesseskinner / hover

A very lightweight data store with action reducers and state change listeners.
MIT License
98 stars 7 forks source link

Typings? #20

Open mikecann opened 8 years ago

mikecann commented 8 years ago

Hey,

Great job on the library, it looks really simple and clean to use.

Im a TS user and it would be awesome to get some typings. I have started to write my own but im not too good at it and having issues.

Mike

jesseskinner commented 8 years ago

Thanks Mike. I'm not familiar with TypeScript, but if you know what changes would be necessary in Hoverboard, I'd encourage you to fork the repo, add these typings, and submit a pull request.

mikecann commented 8 years ago

Okay no worries, im having issues with some nuances of Typescripts typing structure:

http://stackoverflow.com/questions/37381705/hoverboard-typings

If I manage to get that sorted ill do just that!

jesseskinner commented 8 years ago

Maybe this thread is helpful and relevant?

http://stackoverflow.com/questions/12766528/build-a-function-object-with-properties-in-typescript

mikecann commented 8 years ago

Hmmm ye I was thinking about intersection types, not used them before. Ill have a play a little later and see.