next-page-tester
Version:
Enable DOM integration testing on Next.js pages
13 lines (12 loc) • 416 B
TypeScript
import React from 'react';
import type { NextPage } from 'next';
import type { PageProps } from '../commonTypes';
import type { AppContext, AppInitialProps } from 'next/app';
declare type Props = {
Component: NextPage;
pageProps: PageProps | undefined;
};
declare const DefaultApp: React.FC<Props> & {
getInitialProps?: (appContext: AppContext) => Promise<AppInitialProps>;
};
export default DefaultApp;