question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Introducing support for tslib in TS 2.1 is great as we can now easily use up-to-date TS helpers without maintaining our own copy of the source files from github. 😄

But it also introduced a regression: the option to override TS helpers with our own seems to have been lost?

Specifically, I want to provide my own __extends because the one provided by TS is (deliberately) buggy. Before I could do that by having a global __extends that would take precedence. With the new --importHelpers it seems that I lost this option.

What is the recommended way to go about that?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mhegazycommented, Dec 21, 2016

We have a proposal for __extends in https://github.com/Microsoft/TypeScript/pull/12488 that should work for IE10 as well as newer browsers.

0reactions
jods4commented, Dec 21, 2016

that is the best we could come up with 😃

No pressure! It’s impossible to emulate inheritance in IE10- with 100% fidelity.

I am glad you changed your mind about having a different ES-compliant behavior in capable browsers! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide a way to override helper functions in Illuminate ...
I propose bringing back bootstrap/autoload.php , or providing another mechanism to define functions before Illuminate/Foundation/helpers.php ...
Read more >
Override Laravel's helper functions in tests
I am using Homestead, Laravel 5.6 and PHP 7.2. Any ideas on how to load my custom helpers file before laravel's while executing...
Read more >
Override rails helpers with access to original
So the question here is, am I stuck with one of these sub-optimal solutions, or is there another way that I haven't considered?...
Read more >
How to override the `route` helper function? : r/laravel
To do option 3, create a file app/helpers.php , add your new routeWithDefault helper in it and autoload that helpers file in your...
Read more >
Can templates override helpers?
I'm trying to change the way /components/com_content/helpers/icon.php ... Is there a way to cleanly override the edit method in icon.php that keeps all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found