James Hickey's Blog

Looking At Software Related Ideas Using Short And To The Point Code Samples :)

Menu Close

Page 2 of 2

TypeScript Decorators: Bind Constructor Parameters Automagically

The more I use TypeScript the more I realize how powerful it really is. TypeScript decorators are one of those fantastic features that let you do things like automate common tasks and create isolated modules that can be reused. TypeScript constructor decorators allow you to do some really fancy stuff. Keep reading.
Read more

Using TypeScript Decorators To Clean-Up Mixins

Lately (at the time of publishing this article) I’ve been migrating a JavaScript framework I built over to TypeScript. The core UI components are built using mixins. One issue I ran into is trying to clean up code that builds creates objects by combining mixins. By using TypeScript decorators I was able to clean this up to my liking. 🙂

Read more

© 2018 James Hickey's Blog. All rights reserved.

Theme by Anders Norén.