-
Notifications
You must be signed in to change notification settings - Fork 49
fix(web): add types to tsconfig for svgr and vite #1684
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
Conversation
WalkthroughThe pull request modifies the TypeScript configuration file ( Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant TypeScript Compiler
participant Vite
participant SVG Plugin
Developer->>TypeScript Compiler: Compile code
TypeScript Compiler->>Vite: Include types
TypeScript Compiler->>SVG Plugin: Include SVG types
Vite->>TypeScript Compiler: Return Vite types
SVG Plugin->>TypeScript Compiler: Return SVG plugin types
TypeScript Compiler-->>Developer: Compilation complete with specified types
Poem
Tip New featuresWalkthrough comment now includes:
Notes:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
❌ Deploy Preview for kleros-v2-university failed. Why did it fail? →
|
✅ Deploy Preview for kleros-v2-neo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kleros-v2-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Code Climate has analyzed commit b012afb and detected 0 issues on this pull request. View more on Code Climate. |
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.
lgtm
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- web/tsconfig.json (1 hunks)
Additional comments not posted (1)
web/tsconfig.json (1)
61-64
: Approved: Addition of Vite and SVGR types to tsconfig.The addition of
"vite/client"
and"vite-plugin-svgr/client"
to thetypes
array is correctly implemented and enhances the TypeScript configuration for better support with Vite and SVGR. This should improve autocompletion and reduce type-related issues during development.Run the following script to verify the integration of these types with the project's build and development processes:
PR-Codex overview
This PR adds types for Vite and Vite plugin SVGR in
tsconfig.json
.Detailed summary
vite/client
andvite-plugin-svgr/client
totypes
intsconfig.json
Summary by CodeRabbit