feat: Migrate project to TypeScript#56
Open
khanxayitrp wants to merge 1 commit intocreativetimofficial:mainfrom
Open
feat: Migrate project to TypeScript#56khanxayitrp wants to merge 1 commit intocreativetimofficial:mainfrom
khanxayitrp wants to merge 1 commit intocreativetimofficial:mainfrom
Conversation
This commit introduces a comprehensive migration of the entire project from JavaScript (JSX) to TypeScript (TSX). Key changes include: - Installation and configuration of TypeScript (`tsconfig.json`). - Renaming of all `.js` and `.jsx` files to `.ts` and `.tsx` respectively. - Definition of TypeScript interfaces for props, state, data structures, context, and route configurations. - Conversion of existing PropTypes to TypeScript interfaces. - Application of types to all components, functions, and data exports. - Updates to `displayName` properties for components. - Verification of module resolution for updated import paths (handled by Vite/TypeScript). The migration covered the following areas: - Core application setup (`main.tsx`, `App.tsx`) - Configuration files (`src/configs/`) - Data models (`src/data/`) - Layout components (`src/layouts/`) - Page components (`src/pages/`) - Widget components (`src/widgets/`) - Context (`src/context/`) - Routing configuration (`src/routes.tsx`) This migration enhances code quality, maintainability, and developer experience by introducing static typing across the project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a comprehensive migration of the entire project from JavaScript (JSX) to TypeScript (TSX).
Key changes include:
tsconfig.json)..jsand.jsxfiles to.tsand.tsxrespectively.displayNameproperties for components.The migration covered the following areas:
main.tsx,App.tsx)src/configs/)src/data/)src/layouts/)src/pages/)src/widgets/)src/context/)src/routes.tsx)This migration enhances code quality, maintainability, and developer experience by introducing static typing across the project.