create project
This commit is contained in:
55
kitabcitab/node_modules/next/dist/pages/_document.d.ts
generated
vendored
Normal file
55
kitabcitab/node_modules/next/dist/pages/_document.d.ts
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
import React, { ReactNode } from 'react';
|
||||
import type { DocumentContext, DocumentInitialProps, DocumentProps } from '../shared/lib/utils';
|
||||
import { HtmlContext } from '../shared/lib/html-context';
|
||||
import type { HtmlProps } from '../shared/lib/html-context';
|
||||
export { DocumentContext, DocumentInitialProps, DocumentProps };
|
||||
export declare type OriginProps = {
|
||||
nonce?: string;
|
||||
crossOrigin?: string;
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
declare type DocumentFiles = {
|
||||
sharedFiles: readonly string[];
|
||||
pageFiles: readonly string[];
|
||||
allFiles: readonly string[];
|
||||
};
|
||||
declare type HeadHTMLProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadElement>, HTMLHeadElement>;
|
||||
declare type HeadProps = OriginProps & HeadHTMLProps;
|
||||
export declare class Head extends React.Component<HeadProps> {
|
||||
static contextType: React.Context<HtmlProps>;
|
||||
context: React.ContextType<typeof HtmlContext>;
|
||||
getCssLinks(files: DocumentFiles): JSX.Element[] | null;
|
||||
getPreloadDynamicChunks(): (JSX.Element | null)[];
|
||||
getPreloadMainLinks(files: DocumentFiles): JSX.Element[] | null;
|
||||
getBeforeInteractiveInlineScripts(): JSX.Element[];
|
||||
getDynamicChunks(files: DocumentFiles): (JSX.Element | null)[];
|
||||
getPreNextScripts(): JSX.Element;
|
||||
getScripts(files: DocumentFiles): JSX.Element[];
|
||||
getPolyfillScripts(): JSX.Element[];
|
||||
makeStylesheetInert(node: ReactNode): ReactNode[];
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export declare class NextScript extends React.Component<OriginProps> {
|
||||
static contextType: React.Context<HtmlProps>;
|
||||
context: React.ContextType<typeof HtmlContext>;
|
||||
getDynamicChunks(files: DocumentFiles): (JSX.Element | null)[];
|
||||
getPreNextScripts(): JSX.Element;
|
||||
getScripts(files: DocumentFiles): JSX.Element[];
|
||||
getPolyfillScripts(): JSX.Element[];
|
||||
static getInlineScriptSource(context: Readonly<HtmlProps>): string;
|
||||
render(): JSX.Element | null;
|
||||
}
|
||||
export declare function Html(props: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>): JSX.Element;
|
||||
export declare function Main(): JSX.Element;
|
||||
/**
|
||||
* `Document` component handles the initial `document` markup and renders only on the server side.
|
||||
* Commonly used for implementing server side rendering for `css-in-js` libraries.
|
||||
*/
|
||||
export default class Document<P = {}> extends React.Component<DocumentProps & P> {
|
||||
/**
|
||||
* `getInitialProps` hook returns the context object with the addition of `renderPage`.
|
||||
* `renderPage` callback executes `React` rendering logic synchronously to support server-rendering wrappers
|
||||
*/
|
||||
static getInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps>;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
Reference in New Issue
Block a user