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
{{ message }}
Repository navigation
a custom class extends to Object, invoke a member function will produce an error!!! #14869
Actual behavior:
browser console print this error:
ncaught TypeError: _this.greet is not a function
at new Greeter (<anonymous>:23:15)
at <anonymous>:31:15
at HTMLButtonElement.excuteButton.onclick (http://www.typescriptlang.org/play/playground.js:242)
Activity
rdkmaster commentedon Mar 27, 2017
because of this issue, I have to rollback my ts version to 2.1.x
rdkmaster commentedon Mar 27, 2017
is this solution recommended? http://stackoverflow.com/questions/12802383/extending-array-in-typescript/43050204#43050204
gcnew commentedon Mar 27, 2017
See FAQ - Why doesn't extending built-ins like Error, Array, and Map work?
RyanCavanaugh commentedon Mar 27, 2017
Duplicate #10762; please read the FAQ