Skip to content
Discussion options

You must be logged in to vote

OrbitOS uses JavaScript, but to migrate to TypeScript:
1. Install TypeScript: npm install --save-dev typescript @types/react @types/node.
2. Create tsconfig.json:
json<br>{ "compilerOptions": { "target": "es6", "module": "esnext", "jsx": "react-jsx", "strict": true } }<br>
3. Rename .js files to .tsx (e.g., src/components/Desktop.js to .tsx).
4. Add types (e.g., for React components).
5. Test with npm run dev and fix type errors.
6. Update jsconfig.json to tsconfig.json in commits. Submit a pull request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ziqian-Huang0607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants