I'm addicted to the ternary operator. For reasons I can't explain, I cannot get enough of:
61 posts tagged with "typescript"
View All TagsUnderstanding webpack's DefinePlugin (and using with TypeScript)
I've been searching for a way to describe what the DefinePlugin actually does. The docs say:
Define free variables. Useful for having development builds with debug logging or adding global constants.
Creating an ES2015 Map from an Array in TypeScript
I'm a great lover of ES2015's Map
. However, just recently I tumbled over something I find a touch inconvenient about how you initialise a new Map
from the contents of an Array
in TypeScript.
Visual Studio, tsconfig.json and external TypeScript compilation
TypeScript first gained support for tsconfig.json
back with the 1.5 release. However, to my lasting regret and surprise Visual Studio will not be gaining meaningful support for it until TypeScript 1.8 ships. However, if you want it now, it's already available to use in beta.
Definitely Typed Shouldn't Exist
OK - the title's total clickbait but stay with me; there's a point here.
Hey tsconfig.json, where have you been all my life?
Sometimes, you just miss things. Something seismic happens and you had no idea. So it was with tsconfig.json
.
TypeScript: In Praise of Union Types
(& How to Express Functions in UTs)
Have you heard the good news my friend? I refer, of course, to the shipping of TypeScript 1.4 and my favourite language feature since generics.... Union Types.
Using Gulp in Visual Studio instead of Web Optimization
Caching and Cache-Busting in AngularJS with HTTP interceptors
Loading On-Demand and Caching
Journalling the Migration of Jasmine Tests to TypeScript
I previously attempted to migrate my Jasmine tests from JavaScript to TypeScript. The last time I tried it didn't go so well and I bailed. Thank the Lord for source control. But feeling I shouldn't be deterred I decided to have another crack at it.
My Unrequited Love for Isolate Scope
I wrote a little while ago about creating a directive to present server errors on the screen in an Angular application. In my own (not so humble opinion), it was really quite nice. I was particularly proud of my usage of isolate scope. However, pride comes before a fall.
AngularJS meet ASP.Net Server Validation
So. You're using AngularJS to build your front end with ASP.Net running on the server side. You're a trustworthy dev - you know that validation on the client will only get you so far. You need to validate on the server.
HotTowel-Angular meet TypeScript
I've recently ported John Papa's popular Hot Towel Angular SPA Template to TypeScript. Why? Because it was there.
Migrating from AngularJS to AngularTS - a walkthrough
It started with nuns. Don't all good stories start that way? One of my (many) aunts is a Poor Clare nun. At some point in the distant past I was cajoled into putting together a simple website for her convent. This post is a walkthrough of how to migrate from AngularJS using JavaScript to AngularJS using TypeScript. It just so happens that the AngularJS app in question is the one that belongs to my mother's sister's convent.
TypeScript, JSDoc and Intellisense
Days of Yore
TypeScript this is what I want! (the unfortunate neglect of Instance Methods / callback functions)
I was recently reading Jeff Walker's blog post "Why TypeScript Isn't the Answer". This is part of series in which Jeff goes through various compile-to-JavaScript technologies including TypeScript, CoffeeScript and Dart and explains his view of why he feels they don't quite hit the mark.
TypeScript and RequireJS (Keep It Simple)
I'm not the first to take a look at mixing TypeScript and RequireJS but I wanted to get it clear in my head. Also, I've always felt the best way to learn is to do. So here we go. I'm going to create a TypeScript and RequireJS demo based on John Papa's "Keep It Simple RequireJS Demo".
Upgrading to TypeScript 0.9.5 - A Personal Memoir
I recently made the step to upgrade from TypeScript 0.9.1.1 to 0.9.5. To my surprise this process was rather painful and certainly not an unalloyed pleasure. Since I'm now on the other side, so to speak, I thought I'd share my experience and cast back a rope bridge to those about to journey over the abyss.
TypeScript: Don't forget Build Action for Implicit Referencing...
As part of the known breaking changes between 0.9 and 0.9.1 there was this subtle but significant switch:
Getting TypeScript Compile-on-Save and Continuous Integration to play nice
Well sort of... Perhaps this post should more accurately called "How to get CI to ignore your TypeScript whilst Visual Studio still compiles it..."