silverwolf-x's picture
|
download
raw
779 Bytes

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

Xet Storage Details

Size:
779 Bytes
·
Xet hash:
11ed4c766ccb3a103e14a97d88fbbd3cb08e56cf66fc82f7065621d0dcb162bf

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.