hover icon indicating copy to clipboard operation
hover copied to clipboard

Typings?

Open mikecann opened this issue 9 years ago • 4 comments
trafficstars

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

mikecann avatar May 23 '16 01:05 mikecann

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.

jesseskinner avatar May 23 '16 02:05 jesseskinner

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!

mikecann avatar May 23 '16 02:05 mikecann

Maybe this thread is helpful and relevant?

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

jesseskinner avatar May 23 '16 03:05 jesseskinner

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

mikecann avatar May 23 '16 03:05 mikecann