UNPKG

ab-test-jsx

Version:
11 lines (10 loc) 477 B
import * as React from 'react'; import { ABTests } from '../ABTestsContext'; interface OwnProps<T> { abTests: T; defaultVariant?: 'A' | 'B' | 'Z'; } declare type Props<T> = React.PropsWithChildren<OwnProps<T>>; export declare type ABTestProviderComponent<T extends ABTests> = React.FC<Props<T>>; declare const ABTestsProvider: React.MemoExoticComponent<(<T extends ABTests>(props: React.PropsWithChildren<OwnProps<T>>) => JSX.Element)>; export default ABTestsProvider;