Repository navigation
fix(pages): export ActionResult and getValidationErrors() from framework adapters - #789
Merged
cpojer merged 1 commit intoNov 11, 2026
Conversation
The API reference says `action()` returns an `ActionResult`, but no framework adapter exported that type or `getValidationErrors()`. Re-export both from `@void/react`, `@void/vue`, `@void/svelte`, and `@void/solid`, and document them in the pages API reference. Closes voidzero-dev#787 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #787
Summary
The pages API reference says
action()"Returns anActionResult", but none of the framework adapters exported that type, andgetValidationErrors()was only reachable through the undocumentedvoid/pages-client.getValidationErrorsandtype ActionResultfromvoid/pages-clientin@void/react,@void/vue,@void/svelte, and@void/solid, next to the existingisVoidActionError/isCallSiteActionError/VoidActionErrorre-exports.docs/reference/api/pages.md: link eachActionResultmention to theaction()helper guide section, which describes its{ ok, pageData } | { ok, error }shape, and add agetValidationErrors(body)row to each framework's runtime table.Verification
vp run check— 33/33 passeddist(.mjsand.d.mts). Svelte ships its runtime source directly.vp test run packages/{react,svelte,solid}— all passedvp test run packages/vue— 103/104 passed. The one failure (vue-pages-client.test.ts› "renders an optional typed prop during navigation that preserves page state") also times out onmainwithout this change.🤖 Generated with Claude Code