top | item 36389113

(no title)

aphexairlines | 2 years ago

This is a JavaScript keyword and there's nothing TypeScript-specific in the blog post.

discuss

order

OscarDC|2 years ago

I get you, but it's both a TypeScript and JavaScript feature, and more importantly TypeScript is including it in its next official release whereas it is still not part of ECMAScript (though close, at stage 3).

So speaking specifically of a new TypeScript feature is justified here.

belk|2 years ago

typescript is introducing it in a polyfill, which is going to be how a lot of people will first get to use the feature

tantalor|2 years ago

How does the polyfill work? How does TS know the object can be disposed?

OJFord|2 years ago

The article doesn't hide that, and there is something TS-specific: the information that it (that JavaScript version) will come in v5.2.

I think it's fair enough if you're coming from a TS perspective, writing TS (specifically) or blogging about it. Obviously there's overlap.