rsnext/examples/with-typescript-types
Tanmay Laud f00ad581a1
Added .gitignore to examples that are deployed to vercel (#15127)
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-07-16 10:52:23 -04:00
..
pages [Example] with-typescript-types (#13746) 2020-06-04 16:25:28 +00:00
types [Example] with-typescript-types (#13746) 2020-06-04 16:25:28 +00:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
next-env.d.ts [Example] with-typescript-types (#13746) 2020-06-04 16:25:28 +00:00
package.json [Example] with-typescript-types (#13746) 2020-06-04 16:25:28 +00:00
README.md [Example] with-typescript-types (#13746) 2020-06-04 16:25:28 +00:00
tsconfig.json [Example] with-typescript-types (#13746) 2020-06-04 16:25:28 +00:00

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