You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The point is that the code I'm adding to the project inject a few methods in the Pushpin class.
Is possible to do this in typescript? If not is planned?
thanks,
Luca
The text was updated successfully, but these errors were encountered:
Classes in TypeScript are not open ended (see #819 for this suggestion). You can do the usual inheritance techniques but you cannot jam new type information into an existing class. Interfaces and modules are open ended and additional declarations with the same name will merge together.
I just opened this question in stackoverflow:
http://stackoverflow.com/questions/26327520/how-can-i-extend-an-existing-class-in-typescript/26329137#26329137
The point is that the code I'm adding to the project inject a few methods in the Pushpin class.
Is possible to do this in typescript? If not is planned?
thanks,
Luca
The text was updated successfully, but these errors were encountered: