medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

Typescript d.ts file

Open orhanveli opened this issue 7 years ago • 2 comments

Hello everyone

It will be great if there's a d.ts definition for medium-editor to help typescript development.

I started a repo and create a d.ts file. But I don't have enough know-how about d.ts files.

Is there a someone to contribute?

https://github.com/orhanveli/medium-editor.d.ts

orhanveli avatar Aug 26 '16 07:08 orhanveli

@orhanveli rather than hosting it in your own repo you should contribute a definition file to DefinitelyTyped. If there isn't a first-party solution from the library, that is the best place to contribute to.

johnbwoodruff avatar Aug 30 '16 21:08 johnbwoodruff

@orhanveli the DefinitelyTyped version is missing some important things eg. Extension interface.

It would benefit a lot from a PR using your work.

Alternatively, if I'm not mistaken, TS 2.0+ now supports declaration files included in the original JS project. So it might worth thinking about including such work in the repo.

jamespacileo avatar Nov 17 '16 16:11 jamespacileo