Skip to content

Fix/5539 zod omit pick#5556

Open
manthansubhash01 wants to merge 1 commit intodrizzle-team:mainfrom
manthansubhash01:fix/5539-zod-omit-pick
Open

Fix/5539 zod omit pick#5556
manthansubhash01 wants to merge 1 commit intodrizzle-team:mainfrom
manthansubhash01:fix/5539-zod-omit-pick

Conversation

@manthansubhash01
Copy link
Copy Markdown

Summary

Add a regression type test for createInsertSchema() so .omit() and .pick() accept standard { key: true } masks without TS errors.

Changes

  • drizzle-zod/tests/sqlite.test.ts
    • Added compile-time checks for:
      • omit({ id: true, createdAt: true })
      • pick({ id: true, name: true })

Validation

  • pnpm --filter drizzle-zod test:types

Closes #5539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: drizzle-orm/zod .omit() and .pick() produce 'Type true is not assignable to type never' in 1.0.0-beta.20

1 participant