You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vuetify Version: 3.2.5 Vue Version: 3.3.2 Browsers: Chrome 113.0.0.0 OS: Mac OS 10.15.7
Steps to reproduce
In version 3.2.5 this line of code: import {DataTableHeader} from 'vuetify/labs/VDataTable'
gives the error: TS2459: Module '"vuetify/labs/VDataTable"' declares 'DataTableHeader' locally, but it is not exported.
I'm forced to use that type because otherwise: const headers = [ {title: "Name", align: "start", key: "name"} ]
trips up the linter with: error TS2322: Type '({ title: string; align: string; key: string; } | { title: string; key: string; align?: undefined; })[]' is not assignable to type 'DataTableHeader[] | DataTableHeader[][] | undefined'.
and: Type 'string' is not assignable to type '"start" | "end" | undefined'.
Can you please export the typescript type for DataTableHeader? IntelliJ suggests this as the fix, which alters the file downloaded from NPM, which is not exactly a real fix, but it does work.
The text was updated successfully, but these errors were encountered:
Environment
Vuetify Version: 3.2.5
Vue Version: 3.3.2
Browsers: Chrome 113.0.0.0
OS: Mac OS 10.15.7
Steps to reproduce
In version 3.2.5 this line of code:
import {DataTableHeader} from 'vuetify/labs/VDataTable'
gives the error:
TS2459: Module '"vuetify/labs/VDataTable"' declares 'DataTableHeader' locally, but it is not exported.
I'm forced to use that type because otherwise:
const headers = [ {title: "Name", align: "start", key: "name"} ]
trips up the linter with:
error TS2322: Type '({ title: string; align: string; key: string; } | { title: string; key: string; align?: undefined; })[]' is not assignable to type 'DataTableHeader[] | DataTableHeader[][] | undefined'.
and:
Type 'string' is not assignable to type '"start" | "end" | undefined'.
Expected Behavior
Working build
Actual Behavior
npm run build
crashes with a typescript error.Reproduction Link
https://jsfiddle.net/hxj4vst6/
Other comments
Can you please export the typescript type for
DataTableHeader
? IntelliJ suggests this as the fix, which alters the file downloaded from NPM, which is not exactly a real fix, but it does work.The text was updated successfully, but these errors were encountered: