nuxt-flagsmith
Version:
Nuxt.js module to use Flagsmith toggle feature services
25 lines (22 loc) • 463 B
TypeScript
import 'vue'
import '@nuxt/types'
// @ts-ignore
import { FlagsmithFlags, ModuleOptions } from './dist/index'
// @ts-ignore
export * from './dist/index'
declare module '@nuxt/types' {
interface Context {
$flagsmith: FlagsmithFlags
}
interface NuxtAppOptions {
$flagsmith: FlagsmithFlags
}
interface Configuration {
$flagsmith?: Partial<ModuleOptions>
}
}
declare module 'vue/types/vue' {
interface Vue {
$auth: FlagsmithFlags
}
}