-
Notifications
You must be signed in to change notification settings - Fork 420
Add runtime validation for plugin props using Zod #792
Copy link
Copy link
Open
Description
Currently, the withTwilioVideoWebrtc config plugin does not validate the props passed to it at runtime. This may lead to unexpected build-time errors if invalid values are provided.
I propose adding Zod-based schema validation to:
path : plugin/src/index.ts
Ensure cameraPermission and microphonePermission are valid strings
Provide meaningful error messages for invalid inputs
Optionally support default permission values
This would improve:
Developer experience
Plugin reliability
Type safety beyond TypeScript (runtime validation)
I can submit a PR implementing this enhancement.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels