Saturday, May 18, 2024
HomeJavaScriptCountdown to The New 12 months

Countdown to The New 12 months



By

James Davis

That is the twenty fourth a part of our DecEmber collection–”Countdown to The New 12 months: 31 Days of Ember Addons”. Highlighting a brand new addon every day till the brand new 12 months begins, we hope you take pleasure in studying along with us!

Day 24

In the present day we’re going to check out writing apps in TypeScript – utilizing ember-cli-typescript.

What It Does

The ember-cli-typescript addon units up the whole lot it’s worthwhile to begin utilizing TypeScript in your Ember apps and addons. This consists of not solely configuring Babel to deal with TypeScript, however build-time type-checking, in-browser sort error reporting, and a complete set of customized blueprints for producing TypeScript variations of the whole lot from routes and controllers to companies to elements. ember-cli-typescript additionally helps addon authors write their addons in TypeScript by dealing with computerized precompilation and kind definition era when publishing.

Why I Like It

Static typing is a lifesaver, particularly in bold apps with complicated buildings and lots of transferring components. It helps velocity up improvement with wealthy autocompletion and by catching sort errors proper in your editor and throughout the construct. It gives a saftey web when refactoring or upgrading that I, frankly, would not wish to develop with out. And addons written in TypeScript are a pleasure to make use of as a result of they ship with sort definitions that assist assure you might be utilizing them appropriately.

I like ember-cli-typescript as a result of it handles all the Ember + TypeScript integration for you and gives an excellent set of defaults. It has nice documentation, not solely on methods to use ember-cli-typescript, however on methods to use TypeScript successfully with Ember. And to high it off, a tremendous communuty of robust typers has fashioned round ember-cli-typescript and lots of of those people may be discovered on the Ember Group Discord in #e-typescript able to reply your Ember + TypeScript questions!

Do you employ ember-cli-typescript? Or one thing else to make use of TypeScript (or one other language) with Ember? We might love to listen to about Ember addons you like for DecEmber within the feedback under!


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments