rsnext/examples/with-typescript-types
Peng Jie 3c99206313
chore(examples): fix missing document components error messages (#16802)
Thanks vercel team create multiple examples for much use cases, I found some error messages and fixed it.
2020-09-03 21:13:12 +00:00
..
pages chore(examples): fix missing document components error messages (#16802) 2020-09-03 21:13:12 +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 Upgrade typescript to 4.0 (#16673) 2020-08-29 22:17:02 -04: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