rsnext/examples/with-typescript-types/README.md
Todor Totev dbe5973fae
[Example] with-typescript-types (#13746)
Closes [7882](https://github.com/vercel/next.js/issues/7882).
Created as requested by @timneutkens 

I'm unsure if that's exactly what you wanted, so let me know what you want me to change and I'll do it asap.
2020-06-04 16:25:28 +00:00

557 B

This example shows how to integrate the TypeScript type system into Next.js. Since TypeScript is supported out of the box with Next.js, all we have to do is to install TypeScript.

This example shows how to properly export and import typescript types without getting the

Attempted import error: 'TypeA' is not exported from './package-1'.

error as raised in vercel/next.js#7882.

Add import type and export type support to TypeScript