fix(types): return type of $fetch (#9854)

This commit is contained in:
Thibault Vlacich 2021-09-27 14:56:44 +02:00 committed by GitHub
parent 39779d8fdb
commit 034b9901df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ declare module 'vue/types/vue' {
interface Vue {
$config: NuxtRuntimeConfig
$nuxt: NuxtApp
$fetch(): void
$fetch(): Promise<void> | void
$fetchState: {
error: Error | null
pending: boolean