fix typescript rreference resolver..