I receive a JSON object from an AJAX call to a REST server. This object has property names that match my TypeScript class (this is a follow-on to this question).
Wha
Maybe not actual, but simple solution:
interface Bar{ x:number; y?:string; } var baz:Bar = JSON.parse(jsonString); alert(baz.y);
work for difficult dependencies too!!!