drizzle-orm
drizzle-orm copied to clipboard
fix: incorrect types for inArray
when library functions take in arrays, the param should always be marked as readonly. otherwise you force library users to use mutable data structures (bad) or perform manual type assertions (also bad). if you like, i can suggest an eslint rule that will find this class of error in your codebase automatically.
This patch would solve a big issue in my code base.