Reputation: 385
E.g. in a v-data-table, the headers object has a specified object in the API:
Is it possible to get this headers type in Typescript for reuse? Or would i need to create my own interface for this?
Upvotes: 4
Views: 4633
Reputation: 1300
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.
Upvotes: 4