Skip to content

Port 'with-static-export' example to TypeScript#38268

Merged
kodiakhq[bot] merged 14 commits intovercel:canaryfrom
shawncal:examples/with-static-export-typescript
Aug 7, 2022
Merged

Port 'with-static-export' example to TypeScript#38268
kodiakhq[bot] merged 14 commits intovercel:canaryfrom
shawncal:examples/with-static-export-typescript

Conversation

@shawncal
Copy link
Copy Markdown
Contributor

@shawncal shawncal commented Jul 3, 2022

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

  • Make sure the linting passes by running pnpm lint
  • The examples guidelines are followed from our contributing doc

@ijjk ijjk added the examples Issue was opened via the examples template. label Jul 3, 2022
@shawncal
Copy link
Copy Markdown
Contributor Author

shawncal commented Jul 3, 2022

@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.

@maxproske
Copy link
Copy Markdown
Contributor

@shawncal Looks like converting existing examples to TypeScript is preferred - no need for a separate TypeScript example. #37682 (review)

Copy link
Copy Markdown
Contributor

@balazsorban44 balazsorban44 left a 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!

@shawncal shawncal changed the title Add 'with-static-export-typescript' example Port 'with-static-export' example to TypeScript Jul 18, 2022
@ijjk
Copy link
Copy Markdown
Member

ijjk commented Aug 7, 2022

Thanks!

@kodiakhq kodiakhq Bot merged commit 0d5a692 into vercel:canary Aug 7, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

examples Issue was opened via the examples template.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants