This content originally appeared on DEV Community and was authored by Kenji Suzuki
2025-04-28
- batchにQueryの配列を渡すと型エラー
- https://github.com/drizzle-team/drizzle-orm/issues/1292
export const isTuple = <T>(array: T[], gt = 0): array is [T, ...T[]] => {
return array.length > gt;
};
This content originally appeared on DEV Community and was authored by Kenji Suzuki