Skip to content
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

Open
joshtynjala opened this issue Sep 30, 2015 · 0 comments

Comments

@joshtynjala
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant