-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: Allow useRun to specify a resultSchema #408
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
T extends z.ZodObject<any>
for strong typing of result schemasChanges walkthrough 📝
TestPage.tsx
Add Zod schema validation to demo page
sdk-react/demo/TestPage.tsx
resultSchema
optionstart
function usage and simplified component initializationuseRun.ts
Implement Zod schema validation in useRun hook
sdk-react/src/hooks/useRun.ts
result
field in UseRunReturn with typed validation