This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Add argument to enable function parameters and properties to be typed as strict interfaces instead of falling back to Object #3
Labels
TypeScript interfaces are looser than ActionScript interfaces because they allow any object to be passed to function parameters or properties as long as it has the required members. The object's class doesn't need to explicitly implement the interface. ActionScript interfaces must always be explicitly implemented.
dts2as types these parameters or properties as Object so that developers don't need to manually implement the interface. This is usually the most desirable behavior when working with JavaScript libraries, but there may be edge cases where a developer might want to use a strict interface.
The text was updated successfully, but these errors were encountered: