Skip to content

Instantly share code, notes, and snippets.

@stepbeekio
stepbeekio / nuxt.d.ts
Created August 14, 2018 11:12
Typescript working with asyncData & fetch for Nuxt.js
import Vue from 'vue'
import { Store } from 'vuex'
// ComponentOptions is declared in types/options.d.ts
declare module 'vue/types/options' {
interface NuxtContext<V extends Vue> {
app: V,
isClient: boolean,
isServer: boolean,