kazzkiq / CodeFlask

A micro code-editor for awesome web pages.
https://kazzkiq.github.io/CodeFlask/
MIT License
1.07k stars 120 forks source link

Add type definitions for TypeScript #91

Closed joshlgrossman closed 5 years ago

joshlgrossman commented 5 years ago

Wanted to add type definitions for use with TypeScript. Any idea how to get this to be included in the build with rollup?

kazzkiq commented 5 years ago

Awesome work!

I don't think we even need to use Rollup for that. I guess using dts-gen as a npm task will do the job?

Not sure, tho. Never generated type definitions myself.

Until we figure it out, we can update it manually since the API interface is quite small at the moment.

Quilljou commented 5 years ago

Type definitions are still not available in the latest version? Seems that there is not a types property in package.json.