yandex-metrica-ab-vue
Version:
[Русский](#yandex-metrica-ab-vue-ru) | [English](#yandex-metrica-ab-vue-en)
35 lines (34 loc) • 871 B
TypeScript
export interface IConfig {
nonce?: string;
enableVisual: boolean;
enableHTML: boolean;
enableJS: boolean;
enableRedir: boolean;
enableWatch: boolean;
storeRedirParam: boolean | 'localstorage' | 'cookie' | 'get';
metrikaTimeout: number;
enableAdv: boolean;
enableSendYmUid: boolean;
enableSetYmUid: boolean;
cookieDomain?: string | undefined;
storeReferer: boolean;
removeAbRedirParam: boolean;
}
export interface IYmabAnswer {
flags: Record<string, string[]>;
i: string;
experiments: string;
testids: number[];
}
interface IInitParams {
clientId: string;
i?: string;
cuid?: string;
clientFeatures?: Record<string, string>;
config?: Partial<IConfig>;
callback?: (data: IYmabAnswer) => void;
}
export interface IVarioqub {
ymab: (params: IInitParams) => void;
}
export {};