Override helpers
See original GitHub issueIntroducing 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:
- Created 7 years ago
- Reactions:4
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have a proposal for __extends in https://github.com/Microsoft/TypeScript/pull/12488 that should work for IE10 as well as newer browsers.
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! 😃