TheEdoRan / next-safe-action

Type safe and validated Server Actions in your Next.js project.
https://next-safe-action.dev
MIT License
2.29k stars 35 forks source link

fix: export `SafeActionClient` type to make it portable (#267) #269

Closed TheEdoRan closed 2 months ago

TheEdoRan commented 2 months ago

Includes the SafeActionClient into the types export to make the inferred type of createSafeActionClient portable in order to avoid the error TS2742. It enables declaring the action client in a shared package and import it in the other apps or packages.

closes #64

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-safe-action-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 1:46pm
next-safe-action-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 1:46pm
github-actions[bot] commented 2 months ago

:tada: This PR is included in version 7.9.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: