Answers for "nuxt typescript $axios types"

1

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"
    ]
  }
}
-------------------------------------------------------
Posted by: Guest on December-20-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language