-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port 'with-static-export' example to TypeScript #38268
Port 'with-static-export' example to TypeScript #38268
Conversation
@maintainers Let me know if you'd prefer updating the existing with-static-export example to use TS instead of adding this new with-static-export-typescript example alongside it. |
@shawncal Looks like converting existing examples to TypeScript is preferred - no need for a separate TypeScript example. #37682 (review) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#38268 (comment) is correct. Let's just convert the existing example. 👍 Thanks!
# Conflicts: # examples/with-static-export/.gitignore
Thanks! |
The 'with-static-export' example is very useful but, if a developer wants to use TypeScript, converting it is nontrivial. There are some gotchas in the GetStaticProps/GetStaticPaths functions. This example should help jumpstart TS development for sites static generation.
Documentation / Examples
pnpm lint