Skip to content
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

Convert some relative imports in theme package #237

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

chris48s
Copy link
Contributor

Refs #236

Originally I was planning to submit a PR converting all of the imports, but what I quickly realised is that if you just do this without declaring a types module for each one, the compile process fails with

error TS2307: Cannot find module '@theme/ApiDemoPanel/Response' or its corresponding type declarations.

or whatever. This does increase the overhead of the job a bit so I have started off (somewhat selfishly 😇) by only converting the two components I am interested in swizzling. I can also confirm that doing this does make the nested components swizzle-able 🎉

@netlify
Copy link

netlify bot commented Jan 17, 2023

Deploy Preview for docusaurus-openapi ready!

Name Link
🔨 Latest commit 46042f2
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-openapi/deploys/63c7037aac844f0009b7ade4
😎 Deploy Preview https://deploy-preview-237--docusaurus-openapi.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.

@snissn
Copy link

snissn commented Jan 18, 2023

wow this is good timing @chris48s .. can you selflessly add in ApiDemoPanel/Execute/makeRequest.js to make that swizzle-able? I selfishly want to swizzle that component.. and am relieved to see your solution for other components cc @dr-phil

@bourdakos1
Copy link
Member

Nice work, thanks!

@bourdakos1 bourdakos1 merged commit 532fa04 into cloud-annotations:main Jan 18, 2023
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.

None yet

3 participants