f3ef4e99b0
We want to make sure that our examples are not breaking. We don't want to be slowed down by broken 3rd party packages, but we need to ensure that examples covering next.js features are always green. Added as a standalone workflow that doesn't parallelize. It will just run on a cron schedule, so we can check for current status. We can add Slack ping later if we need to. The workflow tests just that our examples can build, so mostly TS issues. We could definitely follow up with actual tests, but that is not as low-hanging. --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Tim Neutkens <tim@timneutkens.nl> |
||
---|---|---|
.. | ||
pages | ||
types | ||
.gitignore | ||
package.json | ||
README.md | ||
tsconfig.json |
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 the example using Vercel or preview live with StackBlitz