Cornerstone with TypeScript

347 views
Skip to first unread message

Jussi Mattila

unread,
Nov 26, 2015, 8:43:40 AM11/26/15
to cornerstone platform
Hi,

I'm implementing an image viewer with cornerstone using TypeScript. It is still in early stages but cornerstone, cornerstoneTools and cornerstoneMath libraries are now working fine from TypeScript after I made initial type definition files for them. So congrats and thank yous for making that possible!

But now I'm having difficulties with the WADO image loader. See these stackoverflow questions:

I'm sure TypeScript is not a priority for cornerstone, but these issues would probably be more easily fixed in JavaScript side, than trying to work around them in TypeScript. At least WADO image loader's reliance of on dicomParser could be parameterized, same as JQuery and cornerstone are.

Any interest in making use of cornerstone in TypeScript easier? And before you ask, yes, I'm ready to contribute (though I'm not a really confident JavaScript/TypeScript developer yet). Just have to figure out what actually needs be done and what I did to get things working on TypeScript side.

   - Jussi

Chris Hafey

unread,
Dec 2, 2015, 10:49:38 AM12/2/15
to cornerstone platform
I don't have any interest in typescript myself right now, but am open to PRs that will make it easier for those that do providing that they aren't disruptive.  Feel free to let us know what you think needs to be changed and I would  be happy to review it.

Jussi Mattila

unread,
Dec 3, 2015, 10:25:37 AM12/3/15
to cornerstone platform
Sure, I'll try to make a PR in the near future!

  - Jussi
Reply all
Reply to author
Forward
0 new messages