drizzle-orm icon indicating copy to clipboard operation
drizzle-orm copied to clipboard

fix: incorrect types for inArray

Open Zamiell opened this issue 2 years ago • 1 comments

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.

Zamiell avatar Jan 09 '24 03:01 Zamiell

This patch would solve a big issue in my code base.

ellis avatar May 04 '24 09:05 ellis