I am New to typescript. In my Durandal application I migrated to VS-2012 to VS-2015 means typescript 0.9 to typescript 1.8.4. After migrated I got so many build errors. I re
Just let TypScript know what type you would expect it to be.
Here is the fix:
let reader = new FileReader(); reader.onload = function (event){ let fileUrl = (event.target).result; }
You could also use reader.result instead in this case
reader.result