uni_modules.d.ts 577 B

12345678910111213141516
  1. import type { Plugin } from 'vite';
  2. interface UniUTSPluginOptions {
  3. x?: boolean;
  4. extApis?: Record<string, [string, string]>;
  5. isSingleThread?: boolean;
  6. }
  7. export declare const utsPlugins: Set<string>;
  8. export declare function uniUTSUniModulesPlugin(options?: UniUTSPluginOptions): Plugin;
  9. export declare function buildUniExtApiProviders(): Promise<void>;
  10. export declare function resolveExtApiProvider(pkg: Record<string, any>): {
  11. name?: string | undefined;
  12. plugin?: string | undefined;
  13. service: string;
  14. servicePlugin: string;
  15. } | undefined;
  16. export {};