Friday, June 9, 2023
HomeJavaScriptSaying Glint 1.0

Saying Glint 1.0

After two years in public preview and contributions from dozens of group members, the Ember
TypeScript staff is worked up to announce the discharge of Glint 1.0!

Whereas Glint has been out there as an unstable prerelease for a while, the mission has now
reached a degree of stability and performance that we’re snug recommending it even for
massive functions with a low tolerance for churn.

What’s Glint?

In an Ember utility, templates are the connective glue that bind collectively all of the totally different
items of your codebase. By itself, nevertheless, TypeScript cannot see what’s occurring in your
templates, so any typechecking or different useful aids it gives can solely ever function upon
small islands of disconnected code, and your whole connections are fully opaque to the

Glint permits TypeScript to know your templates as nicely, which means you get
end-to-end kind security on your complete utility. You additionally get editor assist for issues like
documentation and kind information on hover, leaping to definitions, and automatic codefixes and

A component argument is renamed in a TS file and propagated to templates that reference it, then vice versa.

And, identical to your editor can use TypeScript beneath the covers to supply a lot of these options
even in vanilla JavaScript information, Glint can do the identical! For instance, right here Glint is exhibiting information in a template with a JS backing class:

Type info and documentation prose displayed on hover in a template with a plain JavaScript backing class.

Glint additionally works even higher with the <template> tag characteristic which permits Glimmer and Ember apps
to place their element templates proper subsequent to their JavaScript or TypeScript code.

Get Began

If you happen to’ve been holding off on Glint resulting from its experimental standing or stability disclaimers, now could be
a good time to discover setting it up in your utility or including Glint varieties to addons
you keep
. And once more, Glint might be helpful even in apps with no TypeScript at

What’s Subsequent?

As each Ember and TypeScript proceed to evolve, we’ll be working in Glint to maintain tempo with these
adjustments. There are additionally loads of alternatives nonetheless so as to add additional bells and whistles to the
language server to achieve full parity with native TypeScript.

We’d prefer to take this chance to say due to the various contributors who’ve helped get us
right here, attempting out early variations of Glint of their tasks, reporting points and opening PRs.
Reaching this level wouldn’t have been attainable with out the group and people contributors—thank



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments