Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Common Issues with dts2as

Josh Tynjala edited this page Aug 29, 2015 · 5 revisions

Warning: Multiple ActionScript symbols share the same output file path.

Two symbols may have similar names that require them to be written to the same file. For example, the HTML DOM has a global window variable and a Window class. These symbols have different names, but a file system that is not case-sensitive will treat Window.as and window.as as the same file.

Use the --exclude argument with dts2as to exclude certain symbols from the generated ActionScript.

dts2as --outDir ./definitions --exclude window lib.d.ts

If all symbols are required, run dts2as twice. The first time, use --exclude to remove one of the conflicting symbols from the output. Then, run dts2as a second time, and use a different --outDir. This time, use --include to include only the symbols that you excluded the first time. Add both directories to your project's source path.

dts2as --outDir ./definitions2 --include window lib.d.ts

Clone this wiki locally