Move typing from Nemerle to TypeScript.