3 ms·
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 ide
by cryptica 6y ago
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.
- scotty79 6y agoYou 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.
- cryptica 6y agoI 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.