manifest.d.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. export declare const parseManifestJson: (inputDir: string) => any;
  2. export declare const parseManifestJsonOnce: (inputDir: string) => any;
  3. export declare const parseRpx2UnitOnce: (inputDir: string, platform?: UniApp.PLATFORM) => any;
  4. interface CompilerCompatConfig {
  5. MODE?: 2 | 3;
  6. }
  7. declare function parseCompatConfig(_inputDir: string): CompilerCompatConfig;
  8. export declare const parseCompatConfigOnce: typeof parseCompatConfig;
  9. declare const defaultNetworkTimeout: {
  10. request: number;
  11. connectSocket: number;
  12. uploadFile: number;
  13. downloadFile: number;
  14. };
  15. export declare function normalizeNetworkTimeout(networkTimeout?: Partial<typeof defaultNetworkTimeout>): {
  16. request: number;
  17. connectSocket: number;
  18. uploadFile: number;
  19. downloadFile: number;
  20. };
  21. export declare function getUniStatistics(inputDir: string, platform: UniApp.PLATFORM): any;
  22. export declare function isEnableUniPushV1(inputDir: string, platform: UniApp.PLATFORM): boolean;
  23. export declare function isEnableUniPushV2(inputDir: string, platform: UniApp.PLATFORM): boolean;
  24. export declare function isEnableSecureNetwork(inputDir: string, platform: UniApp.PLATFORM): boolean;
  25. export declare function hasPushModule(inputDir: string): boolean;
  26. export declare function isUniPushOffline(inputDir: string): boolean;
  27. export declare function getRouterOptions(manifestJson: Record<string, any>): {
  28. mode?: 'history' | 'hash';
  29. base?: string;
  30. };
  31. export declare function isEnableTreeShaking(manifestJson: Record<string, any>): boolean;
  32. export declare function getDevServerOptions(manifestJson: Record<string, any>): any;
  33. export declare function getPlatformManifestJsonOnce(): any;
  34. export {};