Typescript Task decorators
See original GitHub issueSuggesting Typescript decorators for supplying the task description and name properties since there is no easy way in typescript to extend function
at least not as easy as JS
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Documentation - Decorators - TypeScript
A Decorator is a special kind of declaration that can be attached to a class declaration, method, accessor, property, or parameter. Decorators use...
Read more >A practical guide to TypeScript decorators - LogRocket Blog
TypeScript decorators enable you to do cools things such as calculate execution time, perform runtime type assertion, guard against errors, ...
Read more >Decorators · Issue #2249 · microsoft/TypeScript - GitHub
A valid decorator should be: Assignable to one of the Decorator types (ClassDecorator | PropertyDecorator | MethodDecorator | ParameterDecorator) as described ...
Read more >Building custom typescript decorators for angular
In this article, we will look at typescript decorators, and how they can help us add abstraction and reusability to our code.
Read more >Deep introduction to using and implementing TypeScript ...
The five types of decorators in TypeScripts · Class Decorators are attached to classes · Property Decorators are attached to property definitions ...
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
I see how that could cause more work than necessary. I’m inclined to agree on that front. But i also see potential for additional organization and structure to a build pipeline. What i had in mind was something like this.
or maybe even overriding the constructor with a decorator for declaring series and parallel task execution
on another note to access those properties with typescript casting the functions at
TaskFunction
and exporting its constant works fine, the gulp-cli picks it all up nicely!!@StevenLiekens fair enough. I don’t do typescript things so thanks for elaborating.