| Server IP : 159.203.156.69 / Your IP : 216.73.217.172 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/vinext/dist/shims/ |
Upload File : |
import React, { ComponentType } from "react";
//#region src/shims/app.d.ts
type AppProps<P = any> = {
Component: ComponentType<P> & {
getInitialProps?: (ctx: any) => any;
};
pageProps: P;
router?: any;
__N_SSG?: boolean;
__N_SSP?: boolean;
};
/**
* The context passed to `App.getInitialProps`. Mirrors Next.js's
* `AppContextType` from `packages/next/src/shared/lib/utils.ts`.
*/
type AppContext = {
Component: ComponentType<any> & {
getInitialProps?: (ctx: any) => any;
};
AppTree: ComponentType<any>;
ctx: any;
router: any;
};
/**
* The initial props shape returned by `App.getInitialProps`. Mirrors
* Next.js's `AppInitialProps` from `packages/next/src/shared/lib/utils.ts`.
*/
type AppInitialProps<PageProps = any> = {
pageProps: PageProps;
};
declare function appGetInitialProps({
Component,
ctx
}: AppContext): Promise<AppInitialProps>;
declare class App<P = any, CP = any, S = any> extends React.Component<P & AppProps<CP>, S> {
static origGetInitialProps: typeof appGetInitialProps;
static getInitialProps: typeof appGetInitialProps;
render(): React.ReactNode;
}
//#endregion
export { AppContext, AppInitialProps, AppProps, App as default };
//# sourceMappingURL=app.d.ts.map