bpms_site/.svn/pristine/0e/0e041e22fba83701df13b11b8da57c269a903f85.svn-base
2025-11-02 16:38:49 +03:30

35 lines
979 B
Plaintext

import type { Rewrite, Redirect } from '../../../../lib/load-custom-routes';
import { webpack } from 'next/dist/compiled/webpack/webpack';
type Rewrites = {
fallback: Rewrite[];
afterFiles: Rewrite[];
beforeFiles: Rewrite[];
};
interface Options {
dir: string;
distDir: string;
appDir: string;
dev: boolean;
isEdgeServer: boolean;
pageExtensions: string[];
typedRoutes: boolean;
originalRewrites: Rewrites | undefined;
originalRedirects: Redirect[] | undefined;
}
export declare class NextTypesPlugin {
dir: string;
distDir: string;
appDir: string;
dev: boolean;
isEdgeServer: boolean;
pageExtensions: string[];
pagesDir: string;
typedRoutes: boolean;
distDirAbsolutePath: string;
constructor(options: Options);
getRelativePathFromAppTypesDir(moduleRelativePathToAppDir: string): string;
collectPage(filePath: string): void;
apply(compiler: webpack.Compiler): void;
}
export {};