main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

23
node_modules/next/dist/server/lib/find-page-file.d.ts generated vendored Normal file
View File

@@ -0,0 +1,23 @@
/**
* Finds a page file with the given parameters. If the page is duplicated with
* multiple extensions it will throw, otherwise it will return the *relative*
* path to the page file or null if it is not found.
*
* @param pagesDir Absolute path to the pages folder with trailing `/pages`.
* @param normalizedPagePath The page normalized (it will be denormalized).
* @param pageExtensions Array of page extensions.
*/
export declare function findPageFile(pagesDir: string, normalizedPagePath: string, pageExtensions: string[], isAppDir: boolean): Promise<string | null>;
/**
*
* createValidFileMatcher receives configured page extensions and return helpers to determine:
* `isLayoutsLeafPage`: if a file is a valid page file or routes file under app directory
* `isTrackedFiles`: if it's a tracked file for webpack watcher
*
*/
export declare function createValidFileMatcher(pageExtensions: string[], appDirPath: string | undefined): {
isPageFile: (filePath: string) => boolean;
isAppRouterPage: (filePath: string) => boolean;
isMetadataFile: (filePath: string) => boolean;
isRootNotFound: (filePath: string) => boolean;
};