
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
@types/marvelapp__react-ab-test
Advanced tools
TypeScript definitions for @marvelapp/react-ab-test
npm install --save @types/marvelapp__react-ab-test
This package contains type definitions for @marvelapp/react-ab-test (https://github.com/marvelapp/react-ab-test#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marvelapp__react-ab-test.
import { JSX } from "react";
export type ListenerCallback = (experimentName: string, variantName: string) => void;
export interface Subscription {
remove(): void;
listener: ListenerCallback;
eventType: string;
}
export namespace emitter {
function emitWin(experimentName: string): void;
function addActiveVariantListener(eventName: string | ListenerCallback, callback?: ListenerCallback): Subscription;
function addPlayListener(eventName: string | ListenerCallback, callback?: ListenerCallback): Subscription;
function addWinListener(eventName: string | ListenerCallback, callback?: ListenerCallback): Subscription;
function defineVariants(experimentName: string, variantNames: string[], variantWeights?: number[]): void;
function setActiveVariant(experimentName: string, variantName: string): void;
function getActiveVariant(experimentName: string): string;
function calculateActiveVariant(
experimentName: string,
userIdentifier?: string,
defaultVariantName?: string,
): string;
function getSortedVariants(experimentName: string): string[];
function setCustomDistributionAlgorithm(
customAlgorithm: (experimentName: string, userIdentifier: string, defaultVariantName?: string) => void,
): void;
}
export interface ExperimentProps {
name: string;
defaultVariantName?: string;
userIdentifier?: string;
children: React.ReactNode;
}
export function Experiment({
name,
defaultVariantName,
userIdentifier,
children,
}: ExperimentProps): JSX.Element;
export function Variant({
name,
children,
}: { name: string; children: React.ReactNode }): JSX.Element;
export namespace experimentDebugger {
function setDebuggerAvailable(isAvailable: boolean): void;
function enable(): void;
function disable(): void;
}
export namespace mixpanelHelper {
function enable(): void;
function disable(): void;
}
export namespace segmentHelper {
function enable(): void;
function disable(): void;
}
These definitions were written by mtayllan.
FAQs
TypeScript definitions for @marvelapp/react-ab-test
The npm package @types/marvelapp__react-ab-test receives a total of 827 weekly downloads. As such, @types/marvelapp__react-ab-test popularity was classified as not popular.
We found that @types/marvelapp__react-ab-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.