In .vue file
<template>
<v-data-table :headers="header" :options.sync="options"> ... </v-data-table>
</template>
<script lang="ts">
import { DataOptions, DataTableHeader } from 'vuetify/types'
interface DataType {
options: DataOptions
headers: DataTableHeader[]
}
export default Vue.extend({
data(): DataType {
options: {}
headers: []
}
})
You can import interfaces from vuetify/types
.
Top comments (0)