scramjetorg / scramjet

Public tracker for Scramjet Cloud Platform, a platform that bring data from many environments together.
https://www.scramjet.org
MIT License
253 stars 20 forks source link

[Help Wanted] Typescript testing #89

Closed MichalCz closed 4 years ago

MichalCz commented 4 years ago

Is your feature request related to a problem? Please describe.

Every now and then a change in scramjet breaks the typescript compatibility. How can we check if the ts.d files are ok?

Describe the solution you'd like

There should be a npm run test:typescript-definitions that should at least install scramjet as a dependency from a file:// location and try to tsc a sample ts file.

Any ideas appreciated. PR's also.

chapmanjacobd commented 4 years ago

https://stackoverflow.com/questions/49296151/how-to-write-tests-for-typescript-typing-definition

https://github.com/ai/check-dts

MichalCz commented 4 years ago

Ok, that's quite interesting. :)

I included this in the flow - it seems to cover errors quite nicely. :)