Skip to content

Migrate to TypeScript#74

Merged
orama254 merged 3 commits intoreactdeveloperske:developfrom
antosan:migrate-to-typescript
Sep 30, 2022
Merged

Migrate to TypeScript#74
orama254 merged 3 commits intoreactdeveloperske:developfrom
antosan:migrate-to-typescript

Conversation

@antosan
Copy link
Copy Markdown
Member

@antosan antosan commented Sep 28, 2022

Fixes Issue

Changes proposed

As was the plan during the open source challenge, we intended to migrate the codebase to TypeScript after the challenge. This PR implements this migration.

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

Note to reviewers

  • Run npm run lint - there should be no linter warnings or errors
  • Run npm run test - the available basic test should pass
  • Run npm run prettier - all files should already be formatted according to the rules
  • Run npm run typecheck - there should be no TypeScript errors
  • Run npm run build - the build should be successful
  • Run npm run dev - the project should run without any errors

I deleted the empty *.spec.jsx and *.stories.jsx files. The setup for these is still in the project and we should add them back as we write the tests and stories.

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
reactdevske-website ✅ Ready (Inspect) Visit Preview Sep 29, 2022 at 2:22PM (UTC)

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 28, 2022

Deploy Preview for reactdevske ready!

Name Link
🔨 Latest commit 0bdf09f
🔍 Latest deploy log https://app.netlify.com/sites/reactdevske/deploys/633460f5b8b2c10008d61b31
😎 Deploy Preview https://deploy-preview-74--reactdevske.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Comment thread src/components/Banner/Banner.tsx
Copy link
Copy Markdown
Member

@orama254 orama254 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good To Me ✅

Comment thread src/pages/events/index.page.tsx Outdated
import type { GetStaticProps } from 'next';

export const getStaticProps = async () => {
type EventData = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This interface has been defined in src/components/EventsDisplay/DisplayRC.tsx. Perhaps we can create a shared interface and import to all the files using it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lekipising Nice observation. Fixed in 760edb9

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @antosan 👌

@orama254 orama254 merged commit 0662d54 into reactdeveloperske:develop Sep 30, 2022
@antosan antosan deleted the migrate-to-typescript branch September 30, 2022 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to TypeScript

3 participants