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
Sleepyowl opened this issue
Nov 18, 2014
· 2 comments
Labels
By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadExternalRelates to another program, environment, or user action which we cannot control.
__extend() function generated by TypeScript is mostly compatible with inheritance mechanisms used by Backbone and Knockback. However, compared to Knockback extend() function, it lacks a couple of steps which leads to faulty behaviour of view models subclassed from Knockback ViewModel using TypeScript inheritance syntax.
I would like to be able to customize the way TypeScript generates inheritance code so it's possible to use TypeScript inheritance syntax with javascript libraries using their own inheritance patterns.
The text was updated successfully, but these errors were encountered:
Note the || operator -- if an __extends function is already defined, that one is used instead. If you have a different __extends function you want, you can simply add a function __extends in a script that loads before any TypeScript file to change it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadExternalRelates to another program, environment, or user action which we cannot control.
__extend() function generated by TypeScript is mostly compatible with inheritance mechanisms used by Backbone and Knockback. However, compared to Knockback extend() function, it lacks a couple of steps which leads to faulty behaviour of view models subclassed from Knockback ViewModel using TypeScript inheritance syntax.
I would like to be able to customize the way TypeScript generates inheritance code so it's possible to use TypeScript inheritance syntax with javascript libraries using their own inheritance patterns.
The text was updated successfully, but these errors were encountered: