silverwolf-x/project / examples /with-typescript-types
32.9 GB
31,201 files
Updated 2 months ago
Name
Size
types
pages
tsconfig.json486 Bytes
xet
package.json382 Bytes
xet
README.md779 Bytes
xet
.gitignore437 Bytes
xet
README.md

TypeScript types example

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.

Deploy your own

Deploy with Vercel

Useful links

Add import type and export type support to TypeScript

Total size
32.9 GB
Files
31,201
Last updated
Sep 26
Pre-warmed CDN
US EU US EU

Contributors