One of the really powerful features that TypeScript brings to the JavaScript world is some Static Typing, even if it is only at code/compile time. With TypeScript I can say that an object is of a certain type which implies there are only a limited set of properties/methods available to me. ...
Today I extended one of our classes to use inheritance via Typescript (love that). When I refreshed the page I received an error here When I dropped to the Chrome debugger and outputted both the values for both ‘d’ and ‘b’ I was a bit shocked. ‘d’ was valid, but ‘b’...
Knockout js is an awesome MVVM framework for HTML/Javascript development and there is an extension library which performs data validation called Knockout.Validation which is an equally awesome library. Today when doing some coding I needed to validate that all properties on a VM were valid. A quick...
Recently I got back into writing html/javascript code as part of my day job and boy-o-boy have things changed since the last time i did any of this. One thing that has not changed for me however was my belief in unit testing, so it was very painful for me to be writing hundreds of lines of javascript...
Recently our team has been using TypeScript for all our Javascript work. To be honest it has been a complete pleasure as it ‘just works’. However one annoyance we quickly found was that we had to choose what was the best approach for using TypeScript. Do we have a single .ts file which...
This is the first tech coming out of Microsoft in several years that I’m excited about….really excited about. So, I thought I would take you, dear reader, on a learning adventure with me. Let’s dive in… What is TypeScript? TypeScript is a new programming language that Microsoft...