Re:Migrating a 10,000-line legacy JavaScript codebase to Typ...
by jdmichal on Tuesday June 28, 2016 @10:56AM
(#11994252)
So I started exploring this again today, and it ends up that what you had works, but if I parens on the typeof check, it no longer works:
if (typeof(x) === "string")
I opened an issue: https://github.com/Microsoft/TypeScript/issues/9391Thanks for the help!
http://www.typescriptlang.org/play/#src=interface%20SomeInte...