swift.d.ts 1.1 KB

123456789101112131415161718192021222324
  1. import { ToSwiftOptions } from './utils';
  2. import { UTSResult } from '@dcloudio/uts';
  3. export declare function runSwiftProd(filename: string, components: Record<string, string>, { isPlugin, isX, extApis, }: {
  4. isPlugin: boolean;
  5. isX: boolean;
  6. extApis?: Record<string, [string, string]>;
  7. }): Promise<void>;
  8. export type RunSwiftDevResult = UTSResult & {
  9. type: 'swift';
  10. code: number;
  11. msg: string;
  12. changed: string[];
  13. };
  14. interface RunSwiftDevOptions {
  15. components: Record<string, string>;
  16. isX: boolean;
  17. isPlugin: boolean;
  18. extApis?: Record<string, [string, string]>;
  19. }
  20. export declare function runSwiftDev(filename: string, { components, isX, isPlugin, extApis }: RunSwiftDevOptions): Promise<RunSwiftDevResult | undefined>;
  21. export declare function compile(filename: string, { inputDir, outputDir, sourceMap, components, isX, isPlugin, extApis, }: ToSwiftOptions): Promise<UTSResult | undefined>;
  22. export declare function resolveIOSDepFiles(filename: string): string[];
  23. export declare function checkIOSVersionTips(pluginId: string, pluginDir: string, is_uni_modules: boolean): string | undefined;
  24. export {};