when using inArray function it can accept empty array as value and it compile just fine but it fails in the run time if there is an empty array.
Expected behavior
The expected behavior is to accept non-empty-array type so that it will fail on compile time if an array could be empty. Here's an example of what I'm talking about:
function inArray<Value>(key: string, array: [Value, ...Value[]]) {
// ... Some Code implementation ...
}
What version of
drizzle-orm
are you using?0.31.1
What version of
drizzle-kit
are you using?0.20.14
Describe the Bug
when using
inArray
function it can accept empty array as value and it compile just fine but it fails in the run time if there is an empty array.Expected behavior
The expected behavior is to accept non-empty-array type so that it will fail on compile time if an array could be empty. Here's an example of what I'm talking about:
Environment & setup
No response