News for hackers. Stuff that matters.
Re:TypeScript 4.1 by cryptica on Friday November 20, 2020 @08:06AM (#25160065)
This is the feature of TypeScript that I'm most looking forward to. Default all variable and constant declarations to type 'any' so that TypeScript can look identical to JavaScript. Then we can remove the transpile step from our projects.
Re:TypeScript 4.1 by scotty79 on Friday November 20, 2020 @11:03AM (#25161679)
You can already do exactly that. Just put .js at the end of your filename.

Or set `noImplicitAny` to false if you want to retain some type checking.

Re:TypeScript 4.1 by cryptica on Friday November 20, 2020 @12:15PM (#25162512)
I need to use the '.ts' extension because my boss demands it. TypeScript needs a feature to allow me to fool my boss into thinking that I'm using TypeScript while actually using JavaScript.