devtools icon indicating copy to clipboard operation
devtools copied to clipboard

fix(devtools-kit): explicitly type return type of useDevtoolsHostClient

Open huang-julien opened this issue 9 months ago • 1 comments

🔗 Linked issue

❓ Type of change

  • [ ] 📖 Documentation (updates to the documentation or readme)
  • [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
  • [ ] 👌 Enhancement (improving an existing functionality)
  • [ ] ✨ New feature (a non-breaking change that adds functionality)
  • [ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

TS or Rollup isn't able to detect the return type of useDevtoolsHostClient so we have to sstrongly type it

image

huang-julien avatar May 06 '25 10:05 huang-julien

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: d966d20
Status: ✅  Deploy successful!
Preview URL: https://64c87ace.nuxt-devtools.pages.dev
Branch Preview URL: https://fix-usedevtoolshostclienttyp.nuxt-devtools.pages.dev

View logs