
Hacer click en la imagen para ampliar
Built-In Zero-Config TypeScript Support
One year ago Next.js 6 introduced basic TypeScript support through a plugin called @zeit/next-typescript.
Users also had to
customize their .babelrc and enable it in next.config.js.
When configured, the plugin would allow .ts and .tsx files to be built by Next.js.
However, it did not integrate type-checking, nor
were types provided by Next.js core.
This meant a community package had to be maintained separately in DefinitelyTyped
that could be out of sync with releases.
While talking with many users, existing and new, it became clear that most were very interested in using TypeScript.
They
wanted a more reliable and standard solution for easily integrating TypeScript into their existing or new codebase.
For that reason, we set out to integrate TypeScript support into the Next.js core, improving developer experience, and making
it faster in the process.
IMG ![]()
Redes relacionadas
: