yuxino / blog

🎬 Life's a Movie
17 stars 2 forks source link

The high-quality TypeScript Declaration File. #104

Closed yuxino closed 4 years ago

yuxino commented 4 years ago

I will show you how to write a high-quality TypeScript Declaration File through several steps.

It's because I'm writing my own library - lemuro, and I find there's a problem with the type hint.

The reason it doesn't work is that lemuro is coding by JS, not Typescript and missing types filed in package.json.

I will show you how to write the dts files is the best way ~

where sholud we put dts file

少女祈祷中

can & can't

少女祈祷中