Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
|
Claude finished @ymc9's task —— View job PR Review: Enum Array Filter Typing Fix
|
There was a problem hiding this comment.
Pull Request Overview
Fixes type checking for enum array filters by properly handling enum types in array filter operations. The PR addresses a typing issue where enum arrays weren't properly typed when using filter operations like equals, has, hasEvery, and hasSome.
- Updates
ArrayFiltertype to accept a schema parameter for proper enum type resolution - Introduces
MapScalarTypehelper to correctly map both primitive and enum types - Adds comprehensive test cases for enum array filtering operations
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/runtime/src/client/crud-types.ts | Updates array filter typing to handle enum arrays correctly by adding schema context and scalar type mapping |
| packages/runtime/test/schemas/typing/typecheck.ts | Adds test cases for enum array filter operations to verify the typing fix |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

No description provided.