@devcycle/nextjs-sdk
Version:
The Next.js SDK for DevCycle!
14 lines (13 loc) • 933 B
TypeScript
import type { AppProps as NextJsAppProps } from 'next/app';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { SSRProps } from './types';
import React from 'react';
import { DevCycleOptions } from '@devcycle/js-client-sdk';
import { ConfigSource } from '@devcycle/types';
type DevCycleNextOptions = Pick<DevCycleOptions, 'maxEventQueueSize' | 'flushEventQueueSize' | 'eventFlushIntervalMS' | 'logger' | 'logLevel' | 'apiProxyURL' | 'disableRealtimeUpdates' | 'disableAutomaticEventLogging' | 'disableCustomEventLogging'> & {
configSource?: ConfigSource;
};
export declare const appWithDevCycle: <Props extends NextJsAppProps>(WrappedComponent: React.ComponentType<Props>, additionalOptions?: DevCycleNextOptions) => ((props: Props & {
pageProps: Props["pageProps"] & SSRProps;
}) => import("react/jsx-runtime").JSX.Element) & hoistNonReactStatics.NonReactStatics<React.ComponentType<Props>, {}>;
export {};