UNPKG

flagmint-vuejs-feature-flags

Version:

A Vue.js SDK for managing feature flags in Flagmint applications, supporting both Vue 2 and Vue 3.

26 lines (23 loc) 705 B
import { FlagClient } from 'flagmint-js-sdk'; type FlagsMixinThis = { $nextTick(arg0: () => void): unknown; $watch(arg0: string, arg1: (val: any) => void): unknown; $flagmintInit: any; flagClient: FlagClient<any> | null; isFlagReady: boolean; getFlag: (key: string, fallback?: any) => any; $flagmint: FlagClient<any>; $flagmintReady?: Promise<void>; }; declare const useFlagsMixin: { data: () => { isFlagReady: boolean; flagClient: FlagClient<any> | null; }; created: () => Promise<void>; mounted: () => void; methods: { getFlag(key: string, fallback?: any): any; }; } & ThisType<FlagsMixinThis>; export { useFlagsMixin };