Compiling definition files

Topics: General, Language Specification
Apr 7, 2014 at 7:26 PM
Hi,

I am attempting to compile a series of .d.ts files into one for deployment. Some of these .d.ts files are code generated from a C# library, others are defined in my TS project. I then compile them all into one .d.ts file for consumption. However with the release of TS 1.0 I am getting 'Duplicate Identifier' errors on build because the compiled .d.ts and the original .d.ts files live within the same folder structure. Any thoughts on how to work around this issue?

Thanks,
csnance
Apr 7, 2014 at 8:11 PM
Nevermind, I found a lingering reference to the .d.ts file that was generating the errors.
Marked as answer by csnance on 4/7/2014 at 1:11 PM
Apr 28, 2014 at 10:42 PM
What do you use to compile the declaration files into one file? By hand or do you have tooling for it?
Apr 29, 2014 at 1:07 PM
I use a simple ps1 script that recurses through all of the .d.ts files and combines them.