DEV Community

Discussion on: TypeScript Tips Part II: Declaration Merging

Collapse
 
karlkras profile image
Karl Krasnowsky

Hey, good article!
I do have a question around .d.ts declaration file use in a react typescript project you might be able to address.
I saw an example program that was using this with other ts modules that used these interfaces without the need to explicitly importing from the type file.
I tried this with a relatively large component group and this worked great.
However, when I submitted this for review, a dev took issue with this and refused to accept it on unavailable documentation supporting standards that this was a good practice or applicable to my use, although I could demonstrate that this worked fine.
Could you confirm (or not) that this is a valid use of .d.ts declaration files?