Updated TypeScript definitions