fix typescript compilation