Typescript compilation after tsd