Typescript Get Value From Object Javascript Definition