Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify/Typescript: Is it possible to see the definition of component attributes?

E.g. in a v-data-table, the headers object has a specified object in the API: enter image description here

Is it possible to get this headers type in Typescript for reuse? Or would i need to create my own interface for this?

like image 458
NullOrNotNull Avatar asked Oct 26 '25 21:10

NullOrNotNull


1 Answers

You can import the type with import { DataTableHeader } from 'vuetify'.

You can look into node_modules/vuetify/types/index.d.ts to see all exported types.

like image 113
Renaud Avatar answered Oct 29 '25 02:10

Renaud