@devcycle/react-client-sdk
Version:
The DevCycle React SDK used for feature management.
9 lines (8 loc) • 592 B
TypeScript
import { ProviderConfig } from './types';
import React, { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
import { DVCCustomDataJSON } from '@devcycle/js-client-sdk';
export declare function withDevCycleProvider<CustomData extends DVCCustomDataJSON = DVCCustomDataJSON>(config: ProviderConfig<CustomData>): <T extends object>(WrappedComponent: React.ComponentType<T>) => ForwardRefExoticComponent<PropsWithoutRef<T> & RefAttributes<unknown>>;
/**
* @deprecated Use withDevCycleProvider instead
*/
export declare const withDVCProvider: typeof withDevCycleProvider;