securityos/node_modules/next/dist/lib/metadata/metadata.d.ts

14 lines
615 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { GetDynamicParamFromSegment } from '../../server/app-render/app-render';
import type { LoaderTree } from '../../server/lib/app-dir-module';
import React from 'react';
export declare function createMetadataComponents({ tree, pathname, searchParams, getDynamicParamFromSegment, appUsingSizeAdjustment, errorType, }: {
tree: LoaderTree;
pathname: string;
searchParams: {
[key: string]: any;
};
getDynamicParamFromSegment: GetDynamicParamFromSegment;
appUsingSizeAdjustment: boolean;
errorType?: 'not-found' | 'redirect';
}): [React.ComponentType, React.ComponentType];