Nuxtjs
this.$zisakuに返す型を定義して、interface Storeに渡してあげれば良い // plugins/zisaku.ts import { Plugin } from '@nuxt/types' export interface Zisaku { hoge: () => void fuga: string } const zisaku = { hoge: () => { console.log('hoge') }, f…
this.$zisakuに返す型を定義して、interface Storeに渡してあげれば良い // plugins/zisaku.ts import { Plugin } from '@nuxt/types' export interface Zisaku { hoge: () => void fuga: string } const zisaku = { hoge: () => { console.log('hoge') }, f…