Double nested return giving type error but works in run time

const result = await db.select({
nesting_one_level: {
nesting_two_level: {
...getTableColumns(MyTable)
}
}
})...
const result = await db.select({
nesting_one_level: {
nesting_two_level: {
...getTableColumns(MyTable)
}
}
})...
Its giving a type error but actually works when ran
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server