erorr in tsc-vue #17567
Unanswered
MohMehrnia
asked this question in
General - Components / Directives / etc
erorr in tsc-vue
#17567
Replies: 1 comment
-
From my answer on #17074 (reply in thread): // You can replace `User` with your relevant model (recommended) or omit it
const columns: QTableColumn<User>[] = [
{ name: 'name', align: 'left', label: 'Name', field: 'name' },
{
name: 'city',
align: 'left',
label: 'City',
// row is type of User, we get IntelliSense, etc.
field: (row) => row.address.city,
},
]; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
with I set column to q-table vue-tsc show me bellow error!
The expected type comes from property 'columns' which is declared here on type 'VNodeProps & AllowedComponentProps & ComponentCustomProps & QTableProps & Record<string, unknown>'
Beta Was this translation helpful? Give feedback.
All reactions