TypeScript applied for routes