typescript - How to add declaration file to package that depends on external declaration file -


i writing library depends on package not have declaration file in it's npm package. therefore, install proper declaration file typings, , well.

however, how publish library installing it, not have worry type dependencies?

if publish declaration on typings registry, not problem, typings generates new declaration file handles dependencies you.

take eg. want move typescript typings of react-notification-system react-notification-system repo. however, typings depend on installed typings of react. how go add these typings repo?

after science, think figured out using typings bundle. full explanation can found in this answer.


Comments