vue-feature-toggle
vue-feature-toggle copied to clipboard
Missing TypeScript support
The package does not provide types. I tested it in my Vue3 project. Also npm i --save-dev @types/vue-feature-toggle
did not help. Can you provide types?
you can use this as a quick fix
// vue-feature-toggle.d.ts
declare module 'vue-feature-toggle' {
export const FeatureToggleComponent: {
name: string;
on(eventtype: string, fn: Function, config: any | undefined): void;
trigger: Function;
showLogs: (showLogs: boolean) => void;
isVisible: boolean;
visibility(param1: any, param2: any, param3: any, param4: any): void;
requiredVisibility(fn: Function): void;
defaultVisibility(fn: Function): void;
addPlugin(plugin: any): void;
setData(nameParam: string | undefined, variantOrDataParam: any, dataParam: any): void;
};
}