find-page-file.d.ts 648 B

1234567891011
  1. /**
  2. * Finds a page file with the given parameters. If the page is duplicated with
  3. * multiple extensions it will throw, otherwise it will return the *relative*
  4. * path to the page file or null if it is not found.
  5. *
  6. * @param pagesDir Absolute path to the pages folder with trailing `/pages`.
  7. * @param normalizedPagePath The page normalized (it will be denormalized).
  8. * @param pageExtensions Array of page extensions.
  9. */
  10. export declare function findPageFile(pagesDir: string, normalizedPagePath: string, pageExtensions: string[], isAppDir: boolean): Promise<string | null>;
  11. export declare function isLayoutsLeafPage(filePath: string): boolean;