dts2as icon indicating copy to clipboard operation
dts2as copied to clipboard

Add argument to enable function parameters and properties to be typed as strict interfaces instead of falling back to Object

Open joshtynjala opened this issue 10 years ago • 0 comments

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.

joshtynjala avatar Sep 30 '15 23:09 joshtynjala