NullOrNotNull
NullOrNotNull

Reputation: 385

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?

Upvotes: 4

Views: 4633

Answers (1)

Renaud
Renaud

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

Related Questions