nuxt ts axios code example
Example: nuxt typescript $axios types
Add the types to your "types" array in tsconfig.json
after the @nuxt/types (Nuxt 2.9.0+) or @nuxt/vue-app entry
--------------------------------------------------------
tsconfig.json
{
"compilerOptions": {
"types": [
"@nuxt/types",
"@nuxtjs/axios"
]
}
}
-------------------------------------------------------