# 3 Things We Learned When Switching to TypeScript

DevFeed: [3 Things We Learned When Switching to TypeScript](<https://devfeed.tech/articles/3-things-we-learned-when-switching-to-typescript-28025.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2022-08-01-three-learnings-switching-to-typescript/>)

Author: Tom Bartel

Published: 2022-08-01T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [TypeScript](<https://devfeed.tech/topics/typescript.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Next.js](<https://devfeed.tech/topics/next-js.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [coding-style](<https://devfeed.tech/tags/coding-style.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [generics](<https://devfeed.tech/tags/generics.md>), [migration](<https://devfeed.tech/tags/migration.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [php](<https://devfeed.tech/tags/php.md>), [switching](<https://devfeed.tech/tags/switching.md>), [type-safety](<https://devfeed.tech/tags/type-safety.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

Trivago describes lessons from switching its core product web application from a PHP/JavaScript stack to Next.js and TypeScript. The article discusses initial resistance, adapting coding practices, increased confidence when modifying unfamiliar code, and TypeScript's limits compared with Java or C# type safety.

## Source excerpt

With the rewrite of our core product web application, we moved from a PHP/JavaScript tech stack to a Next.js stack. One of ...