4 ms·
In typescript the types are optional, so if you omit types it'll look very much like ES6. You can mix and match dynamic stuff with Typescript, depending on you
by ryan-allen 11y ago
In typescript the types are optional, so if you omit types it'll look very much like ES6.
You can mix and match dynamic stuff with Typescript, depending on your compiler options, it'll treat non-typed things as if you were writing regular JS.
I always turned on 'do not allow 'any' types' because I wanted everything typed.
As far as C#... there are enough minor differences for it to be rather annoying if you have to jump back and forth every second day. C# is vastly more powerful and convenient as a language to Typescript, though. I'd write C# in the browser if it were a de-facto option, and I used to write and love Ruby. C# has all the functional stuff I doted over in Ruby, and it's all typesafe!
- WorldMaker 11y agoFurthermore you can give Typescript the allowJS: true compiler option in recent versions and literally mix and match pure JS files and Typescript files in the same "project".