You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.6 KiB

2 months ago
export declare const pagesCacheSet: Set<string>;
export declare function isUniPageFile(file: string, inputDir?: string): boolean;
export declare function isUniPageSetupAndUts(file: string): boolean;
export declare function isUniPageSetupAndTs(file: string): boolean;
export declare function isUniPageSfcFile(file: string, inputDir?: string): boolean;
/**
* subpackages
* @param inputDir
* @param platform
* @param normalize
* @returns
*/
export declare const parsePagesJson: (inputDir: string, platform: UniApp.PLATFORM, normalize?: boolean) => UniApp.PagesJson;
/**
* subpackages pages
*/
export declare const parsePagesJsonOnce: (inputDir: string, platform: UniApp.PLATFORM, normalize?: boolean) => UniApp.PagesJson;
/**
* App H5 使
* @param jsonStr
* @param platform
* @param param2
* @returns
*/
export declare function normalizePagesJson(jsonStr: string, platform: UniApp.PLATFORM, { subpackages, }?: {
subpackages: boolean;
}): UniApp.PagesJson;
export declare function validatePages(pagesJson: Record<string, any>, jsonStr: string): void;
export declare function removePlatformStyle(pageStyle: Record<string, any>): Record<string, any>;
export declare function normalizePagesRoute(pagesJson: UniApp.PagesJson): UniApp.UniRoute[];
declare function parseSubpackagesRoot(inputDir: string, platform: UniApp.PLATFORM): string[];
export declare const parseSubpackagesRootOnce: typeof parseSubpackagesRoot;
export declare function filterPlatformPages(platform: UniApp.PLATFORM, pagesJson: UniApp.PagesJson): void;
export {};