Convert to TypeScript