1 | import type { JsonDocs } from './stencil-public-docs';
|
2 | import type { PrerenderUrlResults } from '../internal';
|
3 | export * from './stencil-public-docs';
|
4 |
|
5 |
|
6 |
|
7 | export interface StencilConfig {
|
8 | |
9 |
|
10 |
|
11 |
|
12 | allowInlineScripts?: boolean;
|
13 | |
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | autoprefixCss?: boolean | any;
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | bundles?: ConfigBundle[];
|
35 | |
36 |
|
37 |
|
38 |
|
39 | enableCache?: boolean;
|
40 | |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | globalStyle?: string;
|
50 | |
51 |
|
52 |
|
53 |
|
54 | hashedFileNameLength?: number;
|
55 | |
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | hashFileNames?: boolean;
|
64 | |
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | namespace?: string;
|
71 | |
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 | outputTargets?: OutputTarget[];
|
79 | |
80 |
|
81 |
|
82 |
|
83 |
|
84 | plugins?: any[];
|
85 | |
86 |
|
87 |
|
88 |
|
89 | srcDir?: string;
|
90 | |
91 |
|
92 |
|
93 |
|
94 | commonjs?: BundlingConfig;
|
95 | |
96 |
|
97 |
|
98 |
|
99 | nodeResolve?: NodeResolveConfig;
|
100 | |
101 |
|
102 |
|
103 | rollupConfig?: RollupConfig;
|
104 | |
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 | buildEs5?: boolean | 'prod';
|
112 | |
113 |
|
114 |
|
115 |
|
116 | minifyJs?: boolean;
|
117 | |
118 |
|
119 |
|
120 |
|
121 | minifyCss?: boolean;
|
122 | |
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 | devMode?: boolean;
|
129 | |
130 |
|
131 |
|
132 |
|
133 | logger?: Logger;
|
134 | |
135 |
|
136 |
|
137 |
|
138 |
|
139 | extras?: ConfigExtras;
|
140 | |
141 |
|
142 |
|
143 |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
|
149 | hydratedFlag?: HydratedFlag;
|
150 | |
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 |
|
159 | invisiblePrehydration?: boolean;
|
160 | |
161 |
|
162 |
|
163 |
|
164 |
|
165 |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 |
|
176 |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 |
|
182 |
|
183 |
|
184 |
|
185 |
|
186 |
|
187 | taskQueue?: 'async' | 'immediate' | 'congestionAsync';
|
188 | |
189 |
|
190 |
|
191 | env?: {
|
192 | [prop: string]: string | undefined;
|
193 | };
|
194 | globalScript?: string;
|
195 | srcIndexHtml?: string;
|
196 | watch?: boolean;
|
197 | testing?: TestingConfig;
|
198 | maxConcurrentWorkers?: number;
|
199 | preamble?: string;
|
200 | rollupPlugins?: {
|
201 | before?: any[];
|
202 | after?: any[];
|
203 | };
|
204 | entryComponentsHint?: string[];
|
205 | buildDist?: boolean;
|
206 | buildLogFilePath?: string;
|
207 | cacheDir?: string;
|
208 | devInspector?: boolean;
|
209 | devServer?: StencilDevServerConfig;
|
210 | enableCacheStats?: boolean;
|
211 | sys?: CompilerSystem;
|
212 | tsconfig?: string;
|
213 | validateTypes?: boolean;
|
214 | |
215 |
|
216 |
|
217 |
|
218 |
|
219 | watchIgnoredRegex?: RegExp | RegExp[];
|
220 | excludeUnusedDependencies?: boolean;
|
221 | stencilCoreResolvedId?: string;
|
222 | }
|
223 | export interface ConfigExtras {
|
224 | |
225 |
|
226 |
|
227 |
|
228 |
|
229 |
|
230 |
|
231 | appendChildSlotFix?: boolean;
|
232 | |
233 |
|
234 |
|
235 |
|
236 |
|
237 |
|
238 |
|
239 | cloneNodeFix?: boolean;
|
240 | |
241 |
|
242 |
|
243 |
|
244 | cssVarsShim?: boolean;
|
245 | |
246 |
|
247 |
|
248 |
|
249 | dynamicImportShim?: boolean;
|
250 | |
251 |
|
252 |
|
253 | lifecycleDOMEvents?: boolean;
|
254 | |
255 |
|
256 |
|
257 |
|
258 |
|
259 |
|
260 | safari10?: boolean;
|
261 | |
262 |
|
263 |
|
264 |
|
265 |
|
266 | scriptDataOpts?: boolean;
|
267 | |
268 |
|
269 |
|
270 |
|
271 |
|
272 |
|
273 | shadowDomShim?: boolean;
|
274 | |
275 |
|
276 |
|
277 |
|
278 |
|
279 |
|
280 | initializeNextTick?: boolean;
|
281 | |
282 |
|
283 |
|
284 |
|
285 |
|
286 |
|
287 | slotChildNodesFix?: boolean;
|
288 | |
289 |
|
290 |
|
291 |
|
292 | tagNameTransform?: boolean;
|
293 | }
|
294 | export interface Config extends StencilConfig {
|
295 | buildAppCore?: boolean;
|
296 | buildDocs?: boolean;
|
297 | configPath?: string;
|
298 | writeLog?: boolean;
|
299 | devServer?: DevServerConfig;
|
300 | flags?: ConfigFlags;
|
301 | fsNamespace?: string;
|
302 | logLevel?: LogLevel;
|
303 | rootDir?: string;
|
304 | packageJsonFilePath?: string;
|
305 | sourceMap?: boolean;
|
306 | suppressLogs?: boolean;
|
307 | profile?: boolean;
|
308 | tsCompilerOptions?: any;
|
309 | _isValidated?: boolean;
|
310 | _isTesting?: boolean;
|
311 | }
|
312 | export interface HydratedFlag {
|
313 | |
314 |
|
315 |
|
316 | name?: string;
|
317 | |
318 |
|
319 |
|
320 | selector?: 'class' | 'attribute';
|
321 | |
322 |
|
323 |
|
324 |
|
325 |
|
326 |
|
327 | property?: string;
|
328 | |
329 |
|
330 |
|
331 |
|
332 | initialValue?: string;
|
333 | |
334 |
|
335 |
|
336 |
|
337 | hydratedValue?: string;
|
338 | }
|
339 | export interface StencilDevServerConfig {
|
340 | |
341 |
|
342 |
|
343 |
|
344 | address?: string;
|
345 | |
346 |
|
347 |
|
348 | basePath?: string;
|
349 | |
350 |
|
351 |
|
352 |
|
353 |
|
354 |
|
355 |
|
356 | experimentalDevModules?: boolean;
|
357 | |
358 |
|
359 |
|
360 | gzip?: boolean;
|
361 | |
362 |
|
363 |
|
364 |
|
365 | https?: Credentials;
|
366 | |
367 |
|
368 |
|
369 | initialLoadUrl?: string;
|
370 | |
371 |
|
372 |
|
373 |
|
374 | logRequests?: boolean;
|
375 | |
376 |
|
377 |
|
378 |
|
379 | openBrowser?: boolean;
|
380 | |
381 |
|
382 |
|
383 | port?: number;
|
384 | |
385 |
|
386 |
|
387 |
|
388 |
|
389 | reloadStrategy?: PageReloadStrategy;
|
390 | |
391 |
|
392 |
|
393 |
|
394 |
|
395 |
|
396 |
|
397 |
|
398 |
|
399 |
|
400 |
|
401 |
|
402 |
|
403 |
|
404 |
|
405 |
|
406 |
|
407 |
|
408 |
|
409 |
|
410 |
|
411 |
|
412 |
|
413 |
|
414 | requestListenerPath?: string;
|
415 | |
416 |
|
417 |
|
418 | root?: string;
|
419 | |
420 |
|
421 |
|
422 |
|
423 |
|
424 |
|
425 | ssr?: boolean;
|
426 | |
427 |
|
428 |
|
429 |
|
430 | startupTimeout?: number;
|
431 | |
432 |
|
433 |
|
434 | websocket?: boolean;
|
435 | |
436 |
|
437 |
|
438 |
|
439 | worker?: boolean;
|
440 | }
|
441 | export interface DevServerConfig extends StencilDevServerConfig {
|
442 | browserUrl?: string;
|
443 | devServerDir?: string;
|
444 | excludeHmr?: string[];
|
445 | historyApiFallback?: HistoryApiFallback;
|
446 | openBrowser?: boolean;
|
447 | prerenderConfig?: string;
|
448 | protocol?: 'http' | 'https';
|
449 | srcIndexHtml?: string;
|
450 | }
|
451 | export interface HistoryApiFallback {
|
452 | index?: string;
|
453 | disableDotRule?: boolean;
|
454 | }
|
455 | export interface DevServerEditor {
|
456 | id: string;
|
457 | name?: string;
|
458 | supported?: boolean;
|
459 | priority?: number;
|
460 | }
|
461 | export interface ConfigFlags {
|
462 | task?: TaskCommand;
|
463 | args?: string[];
|
464 | knownArgs?: string[];
|
465 | unknownArgs?: string[];
|
466 | address?: string;
|
467 | build?: boolean;
|
468 | cache?: boolean;
|
469 | checkVersion?: boolean;
|
470 | ci?: boolean;
|
471 | compare?: boolean;
|
472 | config?: string;
|
473 | debug?: boolean;
|
474 | dev?: boolean;
|
475 | docs?: boolean;
|
476 | docsApi?: string;
|
477 | docsJson?: string;
|
478 | e2e?: boolean;
|
479 | emulate?: string;
|
480 | es5?: boolean;
|
481 | headless?: boolean;
|
482 | help?: boolean;
|
483 | log?: boolean;
|
484 | logLevel?: string;
|
485 | verbose?: boolean;
|
486 | maxWorkers?: number;
|
487 | open?: boolean;
|
488 | port?: number;
|
489 | prerender?: boolean;
|
490 | prod?: boolean;
|
491 | profile?: boolean;
|
492 | root?: string;
|
493 | screenshot?: boolean;
|
494 | screenshotConnector?: string;
|
495 | serve?: boolean;
|
496 | serviceWorker?: boolean;
|
497 | spec?: boolean;
|
498 | ssr?: boolean;
|
499 | stats?: boolean;
|
500 | updateScreenshot?: boolean;
|
501 | version?: boolean;
|
502 | watch?: boolean;
|
503 | devtools?: boolean;
|
504 | }
|
505 | export declare type TaskCommand = 'build' | 'docs' | 'generate' | 'g' | 'help' | 'info' | 'prerender' | 'serve' | 'telemetry' | 'test' | 'version';
|
506 | export declare type PageReloadStrategy = 'hmr' | 'pageReload' | null;
|
507 |
|
508 |
|
509 |
|
510 |
|
511 |
|
512 |
|
513 |
|
514 |
|
515 |
|
516 |
|
517 |
|
518 |
|
519 |
|
520 |
|
521 |
|
522 |
|
523 |
|
524 |
|
525 |
|
526 |
|
527 |
|
528 |
|
529 |
|
530 |
|
531 |
|
532 |
|
533 |
|
534 |
|
535 |
|
536 |
|
537 | export interface PrerenderConfig {
|
538 | |
539 |
|
540 |
|
541 |
|
542 | afterHydrate?(document: Document, url: URL, results: PrerenderUrlResults): any | Promise<any>;
|
543 | |
544 |
|
545 |
|
546 | beforeHydrate?(document: Document, url: URL): any | Promise<any>;
|
547 | |
548 |
|
549 |
|
550 |
|
551 |
|
552 | afterSerializeTemplate?(html: string): string | Promise<string>;
|
553 | |
554 |
|
555 |
|
556 |
|
557 |
|
558 | beforeSerializeTemplate?(document: Document): Document | Promise<Document>;
|
559 | |
560 |
|
561 |
|
562 |
|
563 |
|
564 | canonicalUrl?(url: URL): string | null;
|
565 | |
566 |
|
567 |
|
568 |
|
569 | crawlUrls?: boolean;
|
570 | |
571 |
|
572 |
|
573 | entryUrls?: string[];
|
574 | |
575 |
|
576 |
|
577 | filterAnchor?(attrs: {
|
578 | [attrName: string]: string;
|
579 | }, base?: URL): boolean;
|
580 | |
581 |
|
582 |
|
583 | filterUrl?(url: URL, base: URL): boolean;
|
584 | |
585 |
|
586 |
|
587 |
|
588 | filePath?(url: URL, filePath: string): string;
|
589 | |
590 |
|
591 |
|
592 | hydrateOptions?(url: URL): PrerenderHydrateOptions;
|
593 | |
594 |
|
595 |
|
596 |
|
597 | loadTemplate?(filePath: string): string | Promise<string>;
|
598 | |
599 |
|
600 |
|
601 |
|
602 |
|
603 | normalizeUrl?(href: string, base: URL): URL;
|
604 | robotsTxt?(opts: RobotsTxtOpts): string | RobotsTxtResults;
|
605 | sitemapXml?(opts: SitemapXmpOpts): string | SitemapXmpResults;
|
606 | |
607 |
|
608 |
|
609 |
|
610 | staticSite?: boolean;
|
611 | |
612 |
|
613 |
|
614 | trailingSlash?: boolean;
|
615 | }
|
616 | export interface HydrateDocumentOptions {
|
617 | |
618 |
|
619 |
|
620 |
|
621 | buildId?: string;
|
622 | |
623 |
|
624 |
|
625 |
|
626 |
|
627 | canonicalUrl?: string;
|
628 | |
629 |
|
630 |
|
631 |
|
632 |
|
633 | clientHydrateAnnotations?: boolean;
|
634 | |
635 |
|
636 |
|
637 |
|
638 |
|
639 | constrainTimeouts?: boolean;
|
640 | |
641 |
|
642 |
|
643 | cookie?: string;
|
644 | |
645 |
|
646 |
|
647 | direction?: string;
|
648 | |
649 |
|
650 |
|
651 |
|
652 |
|
653 | excludeComponents?: string[];
|
654 | |
655 |
|
656 |
|
657 | language?: string;
|
658 | |
659 |
|
660 |
|
661 | maxHydrateCount?: number;
|
662 | |
663 |
|
664 |
|
665 | referrer?: string;
|
666 | |
667 |
|
668 |
|
669 | removeScripts?: boolean;
|
670 | |
671 |
|
672 |
|
673 | removeUnusedStyles?: boolean;
|
674 | |
675 |
|
676 |
|
677 | resourcesUrl?: string;
|
678 | |
679 |
|
680 |
|
681 | runtimeLogging?: boolean;
|
682 | |
683 |
|
684 |
|
685 |
|
686 |
|
687 |
|
688 |
|
689 | staticComponents?: string[];
|
690 | |
691 |
|
692 |
|
693 |
|
694 | timeout?: number;
|
695 | |
696 |
|
697 |
|
698 | title?: string;
|
699 | |
700 |
|
701 |
|
702 | url?: string;
|
703 | |
704 |
|
705 |
|
706 | userAgent?: string;
|
707 | }
|
708 | export interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
709 | |
710 |
|
711 |
|
712 | afterHydrate?(document: any): any | Promise<any>;
|
713 | |
714 |
|
715 |
|
716 |
|
717 |
|
718 |
|
719 |
|
720 | approximateLineWidth?: number;
|
721 | |
722 |
|
723 |
|
724 | beforeHydrate?(document: any): any | Promise<any>;
|
725 | |
726 |
|
727 |
|
728 |
|
729 | prettyHtml?: boolean;
|
730 | |
731 |
|
732 |
|
733 |
|
734 | removeAttributeQuotes?: boolean;
|
735 | |
736 |
|
737 |
|
738 |
|
739 | removeBooleanAttributeQuotes?: boolean;
|
740 | |
741 |
|
742 |
|
743 |
|
744 | removeEmptyAttributes?: boolean;
|
745 | |
746 |
|
747 |
|
748 | removeHtmlComments?: boolean;
|
749 | }
|
750 | export interface HydrateFactoryOptions extends SerializeDocumentOptions {
|
751 | serializeToHtml: boolean;
|
752 | destroyWindow: boolean;
|
753 | destroyDocument: boolean;
|
754 | }
|
755 | export interface PrerenderHydrateOptions extends SerializeDocumentOptions {
|
756 | |
757 |
|
758 |
|
759 |
|
760 | addModulePreloads?: boolean;
|
761 | |
762 |
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 | hashAssets?: 'querystring';
|
769 | |
770 |
|
771 |
|
772 |
|
773 | inlineExternalStyleSheets?: boolean;
|
774 | |
775 |
|
776 |
|
777 | minifyStyleElements?: boolean;
|
778 | |
779 |
|
780 |
|
781 | minifyScriptElements?: boolean;
|
782 | |
783 |
|
784 |
|
785 |
|
786 |
|
787 |
|
788 | staticDocument?: boolean;
|
789 | }
|
790 | export interface RobotsTxtOpts {
|
791 | urls: string[];
|
792 | sitemapUrl: string;
|
793 | baseUrl: string;
|
794 | dir: string;
|
795 | }
|
796 | export interface RobotsTxtResults {
|
797 | content: string;
|
798 | filePath: string;
|
799 | url: string;
|
800 | }
|
801 | export interface SitemapXmpOpts {
|
802 | urls: string[];
|
803 | baseUrl: string;
|
804 | dir: string;
|
805 | }
|
806 | export interface SitemapXmpResults {
|
807 | content: string;
|
808 | filePath: string;
|
809 | url: string;
|
810 | }
|
811 |
|
812 |
|
813 |
|
814 |
|
815 |
|
816 |
|
817 |
|
818 |
|
819 |
|
820 | export interface CompilerSystem {
|
821 | name: 'deno' | 'node' | 'in-memory';
|
822 | version: string;
|
823 | events?: BuildEvents;
|
824 | details?: SystemDetails;
|
825 | |
826 |
|
827 |
|
828 | addDestory(cb: () => void): void;
|
829 | |
830 |
|
831 |
|
832 | access(p: string): Promise<boolean>;
|
833 | |
834 |
|
835 |
|
836 | accessSync(p: string): boolean;
|
837 | applyGlobalPatch?(fromDir: string): Promise<void>;
|
838 | applyPrerenderGlobalPatch?(opts: {
|
839 | devServerHostUrl: string;
|
840 | window: any;
|
841 | }): void;
|
842 | cacheStorage?: CacheStorage;
|
843 | checkVersion?: (logger: Logger, currentVersion: string) => Promise<() => void>;
|
844 | copy?(copyTasks: Required<CopyTask>[], srcDir: string): Promise<CopyResults>;
|
845 | |
846 |
|
847 |
|
848 | copyFile(src: string, dst: string): Promise<boolean>;
|
849 | |
850 |
|
851 |
|
852 | destroy(): Promise<void>;
|
853 | |
854 |
|
855 |
|
856 | createDir(p: string, opts?: CompilerSystemCreateDirectoryOptions): Promise<CompilerSystemCreateDirectoryResults>;
|
857 | |
858 |
|
859 |
|
860 | createDirSync(p: string, opts?: CompilerSystemCreateDirectoryOptions): CompilerSystemCreateDirectoryResults;
|
861 | homeDir(): string;
|
862 | |
863 |
|
864 |
|
865 | isTTY(): boolean;
|
866 | |
867 |
|
868 |
|
869 | dynamicImport?(p: string): Promise<any>;
|
870 | |
871 |
|
872 |
|
873 | createWorkerController?(maxConcurrentWorkers: number): WorkerMainController;
|
874 | encodeToBase64(str: string): string;
|
875 | ensureDependencies?(opts: {
|
876 | rootDir: string;
|
877 | logger: Logger;
|
878 | dependencies: CompilerDependency[];
|
879 | }): Promise<{
|
880 | stencilPath: string;
|
881 | diagnostics: Diagnostic[];
|
882 | }>;
|
883 | ensureResources?(opts: {
|
884 | rootDir: string;
|
885 | logger: Logger;
|
886 | dependencies: CompilerDependency[];
|
887 | }): Promise<void>;
|
888 | |
889 |
|
890 |
|
891 | exit(exitCode: number): Promise<void>;
|
892 | |
893 |
|
894 |
|
895 |
|
896 |
|
897 | fetch?(input: string | any, init?: any): Promise<any>;
|
898 | |
899 |
|
900 |
|
901 | generateContentHash?(content: string | any, length?: number): Promise<string>;
|
902 | |
903 |
|
904 |
|
905 | generateFileHash?(filePath: string | any, length?: number): Promise<string>;
|
906 | |
907 |
|
908 |
|
909 | getCurrentDirectory(): string;
|
910 | |
911 |
|
912 |
|
913 | getCompilerExecutingPath(): string;
|
914 | |
915 |
|
916 |
|
917 | getDevServerExecutingPath?(): string;
|
918 | getEnvironmentVar?(key: string): string;
|
919 | |
920 |
|
921 |
|
922 | getLocalModulePath(opts: {
|
923 | rootDir: string;
|
924 | moduleId: string;
|
925 | path: string;
|
926 | }): string;
|
927 | |
928 |
|
929 |
|
930 | getRemoteModuleUrl(opts: {
|
931 | moduleId: string;
|
932 | path?: string;
|
933 | version?: string;
|
934 | }): string;
|
935 | |
936 |
|
937 |
|
938 | glob?(pattern: string, options: {
|
939 | cwd?: string;
|
940 | nodir?: boolean;
|
941 | [key: string]: any;
|
942 | }): Promise<string[]>;
|
943 | |
944 |
|
945 |
|
946 | hardwareConcurrency: number;
|
947 | |
948 |
|
949 |
|
950 | isSymbolicLink(p: string): Promise<boolean>;
|
951 | lazyRequire?: LazyRequire;
|
952 | nextTick(cb: () => void): void;
|
953 | |
954 |
|
955 |
|
956 | normalizePath(p: string): string;
|
957 | onProcessInterrupt?(cb: () => void): void;
|
958 | platformPath: PlatformPath;
|
959 | /**
|
960 | * All return paths are full normalized paths, not just the basenames. Always returns an array, does not throw.
|
961 | */
|
962 | readDir(p: string): Promise<string[]>;
|
963 | /**
|
964 | * SYNC! All return paths are full normalized paths, not just the basenames. Always returns an array, does not throw.
|
965 | */
|
966 | readDirSync(p: string): string[];
|
967 | /**
|
968 | * Returns undefined if file is not found. Does not throw.
|
969 | */
|
970 | readFile(p: string): Promise<string>;
|
971 | readFile(p: string, encoding: 'utf8'): Promise<string>;
|
972 | readFile(p: string, encoding: 'binary'): Promise<any>;
|
973 | /**
|
974 | * SYNC! Returns undefined if file is not found. Does not throw.
|
975 | */
|
976 | readFileSync(p: string, encoding?: string): string;
|
977 | /**
|
978 | * Does not throw.
|
979 | */
|
980 | realpath(p: string): Promise<CompilerSystemRealpathResults>;
|
981 | /**
|
982 | * SYNC! Does not throw.
|
983 | */
|
984 | realpathSync(p: string): CompilerSystemRealpathResults;
|
985 | /**
|
986 | * Remove a callback which will be ran when destroy() is called.
|
987 | */
|
988 | removeDestory(cb: () => void): void;
|
989 | /**
|
990 | * Rename old path to new path. Does not throw.
|
991 | */
|
992 | rename(oldPath: string, newPath: string): Promise<CompilerSystemRenameResults>;
|
993 | resolveModuleId?(opts: ResolveModuleIdOptions): Promise<ResolveModuleIdResults>;
|
994 | resolvePath(p: string): string;
|
995 | /**
|
996 | * Does not throw.
|
997 | */
|
998 | removeDir(p: string, opts?: CompilerSystemRemoveDirectoryOptions): Promise<CompilerSystemRemoveDirectoryResults>;
|
999 | /**
|
1000 | * SYNC! Does not throw.
|
1001 | */
|
1002 | removeDirSync(p: string, opts?: CompilerSystemRemoveDirectoryOptions): CompilerSystemRemoveDirectoryResults;
|
1003 | /**
|
1004 | * Does not throw.
|
1005 | */
|
1006 | removeFile(p: string): Promise<CompilerSystemRemoveFileResults>;
|
1007 | /**
|
1008 | * SYNC! Does not throw.
|
1009 | */
|
1010 | removeFileSync(p: string): CompilerSystemRemoveFileResults;
|
1011 | setupCompiler?: (c: {
|
1012 | ts: any;
|
1013 | }) => void;
|
1014 | |
1015 |
|
1016 |
|
1017 | stat(p: string): Promise<CompilerFsStats>;
|
1018 | |
1019 |
|
1020 |
|
1021 | statSync(p: string): CompilerFsStats;
|
1022 | tmpDirSync(): string;
|
1023 | watchDirectory?(p: string, callback: CompilerFileWatcherCallback, recursive?: boolean): CompilerFileWatcher;
|
1024 | watchFile?(p: string, callback: CompilerFileWatcherCallback): CompilerFileWatcher;
|
1025 | |
1026 |
|
1027 |
|
1028 | watchTimeout?: number;
|
1029 | |
1030 |
|
1031 |
|
1032 | writeFile(p: string, content: string): Promise<CompilerSystemWriteFileResults>;
|
1033 | |
1034 |
|
1035 |
|
1036 | writeFileSync(p: string, content: string): CompilerSystemWriteFileResults;
|
1037 | }
|
1038 | export interface TranspileOnlyResults {
|
1039 | diagnostics: Diagnostic[];
|
1040 | output: string;
|
1041 | sourceMap: any;
|
1042 | }
|
1043 | export interface ParsedPath {
|
1044 | root: string;
|
1045 | dir: string;
|
1046 | base: string;
|
1047 | ext: string;
|
1048 | name: string;
|
1049 | }
|
1050 | export interface PlatformPath {
|
1051 | normalize(p: string): string;
|
1052 | join(...paths: string[]): string;
|
1053 | resolve(...pathSegments: string[]): string;
|
1054 | isAbsolute(p: string): boolean;
|
1055 | relative(from: string, to: string): string;
|
1056 | dirname(p: string): string;
|
1057 | basename(p: string, ext?: string): string;
|
1058 | extname(p: string): string;
|
1059 | parse(p: string): ParsedPath;
|
1060 | sep: string;
|
1061 | delimiter: string;
|
1062 | posix: any;
|
1063 | win32: any;
|
1064 | }
|
1065 | export interface CompilerDependency {
|
1066 | name: string;
|
1067 | version: string;
|
1068 | main: string;
|
1069 | resources?: string[];
|
1070 | }
|
1071 | export interface ResolveModuleIdOptions {
|
1072 | moduleId: string;
|
1073 | containingFile?: string;
|
1074 | exts?: string[];
|
1075 | packageFilter?: (pkg: any) => void;
|
1076 | }
|
1077 | export interface ResolveModuleIdResults {
|
1078 | moduleId: string;
|
1079 | resolveId: string;
|
1080 | pkgData: {
|
1081 | name: string;
|
1082 | version: string;
|
1083 | [key: string]: any;
|
1084 | };
|
1085 | pkgDirPath: string;
|
1086 | }
|
1087 | export interface WorkerMainController {
|
1088 | send(...args: any[]): Promise<any>;
|
1089 | handler(name: string): (...args: any[]) => Promise<any>;
|
1090 | destroy(): void;
|
1091 | maxWorkers: number;
|
1092 | }
|
1093 | export interface CopyResults {
|
1094 | diagnostics: Diagnostic[];
|
1095 | filePaths: string[];
|
1096 | dirPaths: string[];
|
1097 | }
|
1098 | export interface SystemDetails {
|
1099 | cpuModel: string;
|
1100 | freemem(): number;
|
1101 | platform: 'darwin' | 'windows' | 'linux' | '';
|
1102 | release: string;
|
1103 | totalmem: number;
|
1104 | }
|
1105 | export interface BuildOnEvents {
|
1106 | on(cb: (eventName: CompilerEventName, data: any) => void): BuildOnEventRemove;
|
1107 | on(eventName: CompilerEventFileAdd, cb: (path: string) => void): BuildOnEventRemove;
|
1108 | on(eventName: CompilerEventFileDelete, cb: (path: string) => void): BuildOnEventRemove;
|
1109 | on(eventName: CompilerEventFileUpdate, cb: (path: string) => void): BuildOnEventRemove;
|
1110 | on(eventName: CompilerEventDirAdd, cb: (path: string) => void): BuildOnEventRemove;
|
1111 | on(eventName: CompilerEventDirDelete, cb: (path: string) => void): BuildOnEventRemove;
|
1112 | on(eventName: CompilerEventBuildStart, cb: (buildStart: CompilerBuildStart) => void): BuildOnEventRemove;
|
1113 | on(eventName: CompilerEventBuildFinish, cb: (buildResults: CompilerBuildResults) => void): BuildOnEventRemove;
|
1114 | on(eventName: CompilerEventBuildLog, cb: (buildLog: BuildLog) => void): BuildOnEventRemove;
|
1115 | on(eventName: CompilerEventBuildNoChange, cb: () => void): BuildOnEventRemove;
|
1116 | }
|
1117 | export interface BuildEmitEvents {
|
1118 | emit(eventName: CompilerEventFileAdd, path: string): void;
|
1119 | emit(eventName: CompilerEventFileDelete, path: string): void;
|
1120 | emit(eventName: CompilerEventFileUpdate, path: string): void;
|
1121 | emit(eventName: CompilerEventDirAdd, path: string): void;
|
1122 | emit(eventName: CompilerEventDirDelete, path: string): void;
|
1123 | emit(eventName: CompilerEventBuildStart, buildStart: CompilerBuildStart): void;
|
1124 | emit(eventName: CompilerEventBuildFinish, buildResults: CompilerBuildResults): void;
|
1125 | emit(eventName: CompilerEventBuildNoChange, buildNoChange: BuildNoChangeResults): void;
|
1126 | emit(eventName: CompilerEventBuildLog, buildLog: BuildLog): void;
|
1127 | emit(eventName: CompilerEventFsChange, fsWatchResults: FsWatchResults): void;
|
1128 | }
|
1129 | export interface FsWatchResults {
|
1130 | dirsAdded: string[];
|
1131 | dirsDeleted: string[];
|
1132 | filesUpdated: string[];
|
1133 | filesAdded: string[];
|
1134 | filesDeleted: string[];
|
1135 | }
|
1136 | export interface BuildLog {
|
1137 | buildId: number;
|
1138 | messages: string[];
|
1139 | progress: number;
|
1140 | }
|
1141 | export interface BuildNoChangeResults {
|
1142 | buildId: number;
|
1143 | noChange: boolean;
|
1144 | }
|
1145 | export interface CompilerBuildResults {
|
1146 | buildId: number;
|
1147 | componentGraph?: BuildResultsComponentGraph;
|
1148 | diagnostics: Diagnostic[];
|
1149 | dirsAdded: string[];
|
1150 | dirsDeleted: string[];
|
1151 | duration: number;
|
1152 | filesAdded: string[];
|
1153 | filesChanged: string[];
|
1154 | filesDeleted: string[];
|
1155 | filesUpdated: string[];
|
1156 | hasError: boolean;
|
1157 | hasSuccessfulBuild: boolean;
|
1158 | hmr?: HotModuleReplacement;
|
1159 | hydrateAppFilePath?: string;
|
1160 | isRebuild: boolean;
|
1161 | namespace: string;
|
1162 | outputs: BuildOutput[];
|
1163 | rootDir: string;
|
1164 | srcDir: string;
|
1165 | timestamp: string;
|
1166 | }
|
1167 | export interface BuildResultsComponentGraph {
|
1168 | [scopeId: string]: string[];
|
1169 | }
|
1170 | export interface BuildOutput {
|
1171 | type: string;
|
1172 | files: string[];
|
1173 | }
|
1174 | export interface HotModuleReplacement {
|
1175 | componentsUpdated?: string[];
|
1176 | excludeHmr?: string[];
|
1177 | externalStylesUpdated?: string[];
|
1178 | imagesUpdated?: string[];
|
1179 | indexHtmlUpdated?: boolean;
|
1180 | inlineStylesUpdated?: HmrStyleUpdate[];
|
1181 | reloadStrategy: PageReloadStrategy;
|
1182 | scriptsAdded?: string[];
|
1183 | scriptsDeleted?: string[];
|
1184 | serviceWorkerUpdated?: boolean;
|
1185 | versionId?: string;
|
1186 | }
|
1187 | export interface HmrStyleUpdate {
|
1188 | styleId: string;
|
1189 | styleTag: string;
|
1190 | styleText: string;
|
1191 | }
|
1192 | export declare type BuildOnEventRemove = () => boolean;
|
1193 | export interface BuildEvents extends BuildOnEvents, BuildEmitEvents {
|
1194 | unsubscribeAll(): void;
|
1195 | }
|
1196 | export interface CompilerBuildStart {
|
1197 | buildId: number;
|
1198 | timestamp: string;
|
1199 | }
|
1200 | export declare type CompilerFileWatcherCallback = (fileName: string, eventKind: CompilerFileWatcherEvent) => void;
|
1201 | export declare type CompilerFileWatcherEvent = CompilerEventFileAdd | CompilerEventFileDelete | CompilerEventFileUpdate | CompilerEventDirAdd | CompilerEventDirDelete;
|
1202 | export declare type CompilerEventName = CompilerEventFsChange | CompilerEventFileUpdate | CompilerEventFileAdd | CompilerEventFileDelete | CompilerEventDirAdd | CompilerEventDirDelete | CompilerEventBuildStart | CompilerEventBuildFinish | CompilerEventBuildNoChange | CompilerEventBuildLog;
|
1203 | export declare type CompilerEventFsChange = 'fsChange';
|
1204 | export declare type CompilerEventFileUpdate = 'fileUpdate';
|
1205 | export declare type CompilerEventFileAdd = 'fileAdd';
|
1206 | export declare type CompilerEventFileDelete = 'fileDelete';
|
1207 | export declare type CompilerEventDirAdd = 'dirAdd';
|
1208 | export declare type CompilerEventDirDelete = 'dirDelete';
|
1209 | export declare type CompilerEventBuildStart = 'buildStart';
|
1210 | export declare type CompilerEventBuildFinish = 'buildFinish';
|
1211 | export declare type CompilerEventBuildLog = 'buildLog';
|
1212 | export declare type CompilerEventBuildNoChange = 'buildNoChange';
|
1213 | export interface CompilerFileWatcher {
|
1214 | close(): void | Promise<void>;
|
1215 | }
|
1216 | export interface CompilerFsStats {
|
1217 | |
1218 |
|
1219 |
|
1220 | isDirectory: boolean;
|
1221 | |
1222 |
|
1223 |
|
1224 | isFile: boolean;
|
1225 | |
1226 |
|
1227 |
|
1228 | isSymbolicLink: boolean;
|
1229 | |
1230 |
|
1231 |
|
1232 | size: number;
|
1233 | |
1234 |
|
1235 |
|
1236 | mtimeMs?: number;
|
1237 | |
1238 |
|
1239 |
|
1240 | error: any;
|
1241 | }
|
1242 | export interface CompilerSystemCreateDirectoryOptions {
|
1243 | |
1244 |
|
1245 |
|
1246 |
|
1247 | recursive?: boolean;
|
1248 | |
1249 |
|
1250 |
|
1251 |
|
1252 | mode?: number;
|
1253 | }
|
1254 | export interface CompilerSystemCreateDirectoryResults {
|
1255 | basename: string;
|
1256 | dirname: string;
|
1257 | path: string;
|
1258 | newDirs: string[];
|
1259 | error: any;
|
1260 | }
|
1261 | export interface CompilerSystemRemoveDirectoryOptions {
|
1262 | |
1263 |
|
1264 |
|
1265 |
|
1266 | recursive?: boolean;
|
1267 | }
|
1268 | export interface CompilerSystemRemoveDirectoryResults {
|
1269 | basename: string;
|
1270 | dirname: string;
|
1271 | path: string;
|
1272 | removedDirs: string[];
|
1273 | removedFiles: string[];
|
1274 | error: any;
|
1275 | }
|
1276 | export interface CompilerSystemRenameResults extends CompilerSystemRenamedPath {
|
1277 | renamed: CompilerSystemRenamedPath[];
|
1278 | oldDirs: string[];
|
1279 | oldFiles: string[];
|
1280 | newDirs: string[];
|
1281 | newFiles: string[];
|
1282 | error: any;
|
1283 | }
|
1284 | export interface CompilerSystemRenamedPath {
|
1285 | oldPath: string;
|
1286 | newPath: string;
|
1287 | isFile: boolean;
|
1288 | isDirectory: boolean;
|
1289 | }
|
1290 | export interface CompilerSystemRealpathResults {
|
1291 | path: string;
|
1292 | error: any;
|
1293 | }
|
1294 | export interface CompilerSystemRemoveFileResults {
|
1295 | basename: string;
|
1296 | dirname: string;
|
1297 | path: string;
|
1298 | error: any;
|
1299 | }
|
1300 | export interface CompilerSystemWriteFileResults {
|
1301 | path: string;
|
1302 | error: any;
|
1303 | }
|
1304 | export interface Credentials {
|
1305 | key: string;
|
1306 | cert: string;
|
1307 | }
|
1308 | export interface ConfigBundle {
|
1309 | components: string[];
|
1310 | }
|
1311 | export interface CopyTask {
|
1312 | src: string;
|
1313 | dest?: string;
|
1314 | warn?: boolean;
|
1315 | keepDirStructure?: boolean;
|
1316 | }
|
1317 | export interface BundlingConfig {
|
1318 | namedExports?: {
|
1319 | [key: string]: string[];
|
1320 | };
|
1321 | }
|
1322 | export interface NodeResolveConfig {
|
1323 | module?: boolean;
|
1324 | jsnext?: boolean;
|
1325 | main?: boolean;
|
1326 | browser?: boolean;
|
1327 | extensions?: string[];
|
1328 | preferBuiltins?: boolean;
|
1329 | jail?: string;
|
1330 | only?: Array<string | RegExp>;
|
1331 | modulesOnly?: boolean;
|
1332 | /**
|
1333 | * @see https://github.com/browserify/resolve#resolveid-opts-cb
|
1334 | */
|
1335 | customResolveOptions?: {
|
1336 | basedir?: string;
|
1337 | package?: string;
|
1338 | extensions?: string[];
|
1339 | readFile?: Function;
|
1340 | isFile?: Function;
|
1341 | isDirectory?: Function;
|
1342 | packageFilter?: Function;
|
1343 | pathFilter?: Function;
|
1344 | paths?: Function | string[];
|
1345 | moduleDirectory?: string | string[];
|
1346 | preserveSymlinks?: boolean;
|
1347 | };
|
1348 | }
|
1349 | export interface RollupConfig {
|
1350 | inputOptions?: RollupInputOptions;
|
1351 | outputOptions?: RollupOutputOptions;
|
1352 | }
|
1353 | export interface RollupInputOptions {
|
1354 | context?: string;
|
1355 | moduleContext?: ((id: string) => string) | {
|
1356 | [id: string]: string;
|
1357 | };
|
1358 | treeshake?: boolean;
|
1359 | }
|
1360 | export interface RollupOutputOptions {
|
1361 | globals?: {
|
1362 | [name: string]: string;
|
1363 | } | ((name: string) => string);
|
1364 | }
|
1365 | export interface Testing {
|
1366 | run(opts: TestingRunOptions): Promise<boolean>;
|
1367 | destroy(): Promise<void>;
|
1368 | }
|
1369 | export interface TestingRunOptions {
|
1370 | e2e?: boolean;
|
1371 | screenshot?: boolean;
|
1372 | spec?: boolean;
|
1373 | updateScreenshot?: boolean;
|
1374 | }
|
1375 | export interface JestConfig {
|
1376 | /**
|
1377 | * This option tells Jest that all imported modules in your tests should be mocked automatically.
|
1378 | * All modules used in your tests will have a replacement implementation, keeping the API surface. Default: false
|
1379 | */
|
1380 | automock?: boolean;
|
1381 | /**
|
1382 | * By default, Jest runs all tests and produces all errors into the console upon completion.
|
1383 | * The bail config option can be used here to have Jest stop running tests after the first failure. Default: false
|
1384 | */
|
1385 | bail?: boolean;
|
1386 | /**
|
1387 | * The directory where Jest should store its cached dependency information. Jest attempts to scan your dependency tree once (up-front)
|
1388 | * and cache it in order to ease some of the filesystem raking that needs to happen while running tests. This config option lets you
|
1389 | * customize where Jest stores that cache data on disk. Default: "/tmp/<path>"
|
1390 | */
|
1391 | cacheDirectory?: string;
|
1392 | /**
|
1393 | * Automatically clear mock calls and instances between every test. Equivalent to calling jest.clearAllMocks()
|
1394 | * between each test. This does not remove any mock implementation that may have been provided. Default: false
|
1395 | */
|
1396 | clearMocks?: boolean;
|
1397 | /**
|
1398 | * Indicates whether the coverage information should be collected while executing the test. Because this retrofits all
|
1399 | * executed files with coverage collection statements, it may significantly slow down your tests. Default: false
|
1400 | */
|
1401 | collectCoverage?: boolean;
|
1402 | /**
|
1403 | * An array of glob patterns indicating a set of files for which coverage information should be collected.
|
1404 | * If a file matches the specified glob pattern, coverage information will be collected for it even if no tests exist
|
1405 | * for this file and it's never required in the test suite. Default: undefined
|
1406 | */
|
1407 | collectCoverageFrom?: any[];
|
1408 | /**
|
1409 | * The directory where Jest should output its coverage files. Default: undefined
|
1410 | */
|
1411 | coverageDirectory?: string;
|
1412 | /**
|
1413 | * An array of regexp pattern strings that are matched against all file paths before executing the test. If the file path matches
|
1414 | * any of the patterns, coverage information will be skipped. These pattern strings match against the full path.
|
1415 | * Use the <rootDir> string token to include the path to your project's root directory to prevent it from accidentally
|
1416 | * ignoring all of your files in different environments that may have different root directories.
|
1417 | * Example: ["<rootDir>/build/", "<rootDir>/node_modules/"]. Default: ["/node_modules/"]
|
1418 | */
|
1419 | coveragePathIgnorePatterns?: any[];
|
1420 | /**
|
1421 | * A list of reporter names that Jest uses when writing coverage reports. Any istanbul reporter can be used.
|
1422 | * Default: ["json", "lcov", "text"]
|
1423 | */
|
1424 | coverageReporters?: any[];
|
1425 | /**
|
1426 | * This will be used to configure minimum threshold enforcement for coverage results. Thresholds can be specified as global,
|
1427 | * as a glob, and as a directory or file path. If thresholds aren't met, jest will fail. Thresholds specified as a positive
|
1428 | * number are taken to be the minimum percentage required. Thresholds specified as a negative number represent the maximum
|
1429 | * number of uncovered entities allowed. Default: undefined
|
1430 | */
|
1431 | coverageThreshold?: any;
|
1432 | errorOnDeprecated?: boolean;
|
1433 | forceCoverageMatch?: any[];
|
1434 | globals?: any;
|
1435 | globalSetup?: string;
|
1436 | globalTeardown?: string;
|
1437 | /**
|
1438 | * An array of directory names to be searched recursively up from the requiring module's location. Setting this option will
|
1439 | * override the default, if you wish to still search node_modules for packages include it along with any other
|
1440 | * options: ["node_modules", "bower_components"]. Default: ["node_modules"]
|
1441 | */
|
1442 | moduleDirectories?: string[];
|
1443 | /**
|
1444 | * An array of file extensions your modules use. If you require modules without specifying a file extension,
|
1445 | * these are the extensions Jest will look for. Default: ['ts', 'tsx', 'js', 'json']
|
1446 | */
|
1447 | moduleFileExtensions?: string[];
|
1448 | moduleNameMapper?: any;
|
1449 | modulePaths?: any[];
|
1450 | modulePathIgnorePatterns?: any[];
|
1451 | notify?: boolean;
|
1452 | notifyMode?: string;
|
1453 | preset?: string;
|
1454 | prettierPath?: string;
|
1455 | projects?: any;
|
1456 | reporters?: any;
|
1457 | resetMocks?: boolean;
|
1458 | resetModules?: boolean;
|
1459 | resolver?: string;
|
1460 | restoreMocks?: string;
|
1461 | rootDir?: string;
|
1462 | roots?: any[];
|
1463 | runner?: string;
|
1464 | /**
|
1465 | * The paths to modules that run some code to configure or set up the testing environment before each test.
|
1466 | * Since every test runs in its own environment, these scripts will be executed in the testing environment
|
1467 | * immediately before executing the test code itself. Default: []
|
1468 | */
|
1469 | setupFiles?: string[];
|
1470 | setupFilesAfterEnv?: string[];
|
1471 | snapshotSerializers?: any[];
|
1472 | testEnvironment?: string;
|
1473 | testEnvironmentOptions?: any;
|
1474 | testMatch?: string[];
|
1475 | testPathIgnorePatterns?: string[];
|
1476 | testPreset?: string;
|
1477 | testRegex?: string;
|
1478 | testResultsProcessor?: string;
|
1479 | testRunner?: string;
|
1480 | testURL?: string;
|
1481 | timers?: string;
|
1482 | transform?: {
|
1483 | [key: string]: string;
|
1484 | };
|
1485 | transformIgnorePatterns?: any[];
|
1486 | unmockedModulePathPatterns?: any[];
|
1487 | verbose?: boolean;
|
1488 | watchPathIgnorePatterns?: any[];
|
1489 | }
|
1490 | export interface TestingConfig extends JestConfig {
|
1491 | /**
|
1492 | * The `allowableMismatchedPixels` value is used to determine an acceptable
|
1493 | * number of pixels that can be mismatched before the image is considered
|
1494 | * to have changes. Realistically, two screenshots representing the same
|
1495 | * content may have a small number of pixels that are not identical due to
|
1496 | * anti-aliasing, which is perfectly normal. If the `allowableMismatchedRatio`
|
1497 | * is provided it will take precedence, otherwise `allowableMismatchedPixels`
|
1498 | * will be used.
|
1499 | */
|
1500 | allowableMismatchedPixels?: number;
|
1501 | /**
|
1502 | * The `allowableMismatchedRatio` ranges from `0` to `1` and is used to
|
1503 | * determine an acceptable ratio of pixels that can be mismatched before
|
1504 | * the image is considered to have changes. Realistically, two screenshots
|
1505 | * representing the same content may have a small number of pixels that
|
1506 | * are not identical due to anti-aliasing, which is perfectly normal. The
|
1507 | * `allowableMismatchedRatio` is the number of pixels that were mismatched,
|
1508 | * divided by the total number of pixels in the screenshot. For example,
|
1509 | * a ratio value of `0.06` means 6% of the pixels can be mismatched before
|
1510 | * the image is considered to have changes. If the `allowableMismatchedRatio`
|
1511 | * is provided it will take precedence, otherwise `allowableMismatchedPixels`
|
1512 | * will be used.
|
1513 | */
|
1514 | allowableMismatchedRatio?: number;
|
1515 | /**
|
1516 | * Matching threshold while comparing two screenshots. Value ranges from `0` to `1`.
|
1517 | * Smaller values make the comparison more sensitive. The `pixelmatchThreshold`
|
1518 | * value helps to ignore anti-aliasing. Default: `0.1`
|
1519 | */
|
1520 | pixelmatchThreshold?: number;
|
1521 | /**
|
1522 | * Additional arguments to pass to the browser instance.
|
1523 | */
|
1524 | browserArgs?: string[];
|
1525 | /**
|
1526 | * Path to a Chromium or Chrome executable to run instead of the bundled Chromium.
|
1527 | */
|
1528 | browserExecutablePath?: string;
|
1529 | /**
|
1530 | * Url of remote Chrome instance to use instead of local Chrome.
|
1531 | */
|
1532 | browserWSEndpoint?: string;
|
1533 | /**
|
1534 | * Whether to run browser e2e tests in headless mode. Defaults to true.
|
1535 | */
|
1536 | browserHeadless?: boolean;
|
1537 | /**
|
1538 | * Slows down e2e browser operations by the specified amount of milliseconds.
|
1539 | * Useful so that you can see what is going on.
|
1540 | */
|
1541 | browserSlowMo?: number;
|
1542 | /**
|
1543 | * By default, all E2E pages wait until the "load" event, this global setting can be used
|
1544 | * to change the default `waitUntil` behaviour.
|
1545 | */
|
1546 | browserWaitUntil?: 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2';
|
1547 | /**
|
1548 | * Whether to auto-open a DevTools panel for each tab.
|
1549 | * If this option is true, the headless option will be set false
|
1550 | */
|
1551 | browserDevtools?: boolean;
|
1552 | /**
|
1553 | * Array of browser emulations to be using during e2e tests. A full e2e
|
1554 | * test is ran for each emulation.
|
1555 | */
|
1556 | emulate?: EmulateConfig[];
|
1557 | /**
|
1558 | * Path to the Screenshot Connector module.
|
1559 | */
|
1560 | screenshotConnector?: string;
|
1561 | /**
|
1562 | * Amount of time in milliseconds to wait before a screenshot is taken.
|
1563 | */
|
1564 | waitBeforeScreenshot?: number;
|
1565 | }
|
1566 | export interface EmulateConfig {
|
1567 | /**
|
1568 | * Predefined device descriptor name, such as "iPhone X" or "Nexus 10".
|
1569 | * For a complete list please see: https://github.com/puppeteer/puppeteer/blob/main/src/common/DeviceDescriptors.ts
|
1570 | */
|
1571 | device?: string;
|
1572 | /**
|
1573 | * User-Agent to be used. Defaults to the user-agent of the installed Puppeteer version.
|
1574 | */
|
1575 | userAgent?: string;
|
1576 | viewport?: EmulateViewport;
|
1577 | }
|
1578 | export interface EmulateViewport {
|
1579 | /**
|
1580 | * Page width in pixels.
|
1581 | */
|
1582 | width: number;
|
1583 | /**
|
1584 | * page height in pixels.
|
1585 | */
|
1586 | height: number;
|
1587 | /**
|
1588 | * Specify device scale factor (can be thought of as dpr). Defaults to 1.
|
1589 | */
|
1590 | deviceScaleFactor?: number;
|
1591 | /**
|
1592 | * Whether the meta viewport tag is taken into account. Defaults to false.
|
1593 | */
|
1594 | isMobile?: boolean;
|
1595 | /**
|
1596 | * Specifies if viewport supports touch events. Defaults to false
|
1597 | */
|
1598 | hasTouch?: boolean;
|
1599 | /**
|
1600 | * Specifies if viewport is in landscape mode. Defaults to false.
|
1601 | */
|
1602 | isLandscape?: boolean;
|
1603 | }
|
1604 | export declare type LogLevel = 'debug' | 'info' | 'warn' | 'error' | string;
|
1605 | /**
|
1606 | * Common logger to be used by the compiler, dev-server and CLI. The CLI will use a
|
1607 | * NodeJS based console logging and colors, and the web will use browser based
|
1608 | * logs and colors.
|
1609 | */
|
1610 | export interface Logger {
|
1611 | enableColors: (useColors: boolean) => void;
|
1612 | setLevel: (level: LogLevel) => void;
|
1613 | getLevel: () => LogLevel;
|
1614 | debug: (...msg: any[]) => void;
|
1615 | info: (...msg: any[]) => void;
|
1616 | warn: (...msg: any[]) => void;
|
1617 | error: (...msg: any[]) => void;
|
1618 | createTimeSpan: (startMsg: string, debug?: boolean, appendTo?: string[]) => LoggerTimeSpan;
|
1619 | printDiagnostics: (diagnostics: Diagnostic[], cwd?: string) => void;
|
1620 | red: (msg: string) => string;
|
1621 | green: (msg: string) => string;
|
1622 | yellow: (msg: string) => string;
|
1623 | blue: (msg: string) => string;
|
1624 | magenta: (msg: string) => string;
|
1625 | cyan: (msg: string) => string;
|
1626 | gray: (msg: string) => string;
|
1627 | bold: (msg: string) => string;
|
1628 | dim: (msg: string) => string;
|
1629 | bgRed: (msg: string) => string;
|
1630 | emoji: (e: string) => string;
|
1631 | setLogFilePath?: (p: string) => void;
|
1632 | writeLogs?: (append: boolean) => void;
|
1633 | createLineUpdater?: () => Promise<LoggerLineUpdater>;
|
1634 | }
|
1635 | export interface LoggerLineUpdater {
|
1636 | update(text: string): Promise<void>;
|
1637 | stop(): Promise<void>;
|
1638 | }
|
1639 | export interface LoggerTimeSpan {
|
1640 | duration(): number;
|
1641 | finish(finishedMsg: string, color?: string, bold?: boolean, newLineSuffix?: boolean): number;
|
1642 | }
|
1643 | export interface OutputTargetDist extends OutputTargetBase {
|
1644 | type: 'dist';
|
1645 | buildDir?: string;
|
1646 | dir?: string;
|
1647 | collectionDir?: string | null;
|
1648 | typesDir?: string;
|
1649 | esmLoaderPath?: string;
|
1650 | copy?: CopyTask[];
|
1651 | polyfills?: boolean;
|
1652 | empty?: boolean;
|
1653 | }
|
1654 | export interface OutputTargetDistCollection extends OutputTargetBase {
|
1655 | type: 'dist-collection';
|
1656 | dir: string;
|
1657 | collectionDir: string;
|
1658 | }
|
1659 | export interface OutputTargetDistTypes extends OutputTargetBase {
|
1660 | type: 'dist-types';
|
1661 | dir: string;
|
1662 | typesDir: string;
|
1663 | }
|
1664 | export interface OutputTargetDistLazy extends OutputTargetBase {
|
1665 | type: 'dist-lazy';
|
1666 | dir?: string;
|
1667 | esmDir?: string;
|
1668 | esmEs5Dir?: string;
|
1669 | systemDir?: string;
|
1670 | cjsDir?: string;
|
1671 | polyfills?: boolean;
|
1672 | isBrowserBuild?: boolean;
|
1673 | esmIndexFile?: string;
|
1674 | cjsIndexFile?: string;
|
1675 | systemLoaderFile?: string;
|
1676 | empty?: boolean;
|
1677 | }
|
1678 | export interface OutputTargetDistGlobalStyles extends OutputTargetBase {
|
1679 | type: 'dist-global-styles';
|
1680 | file: string;
|
1681 | }
|
1682 | export interface OutputTargetDistLazyLoader extends OutputTargetBase {
|
1683 | type: 'dist-lazy-loader';
|
1684 | dir: string;
|
1685 | esmDir: string;
|
1686 | esmEs5Dir: string;
|
1687 | cjsDir: string;
|
1688 | componentDts: string;
|
1689 | empty: boolean;
|
1690 | }
|
1691 | export interface OutputTargetHydrate extends OutputTargetBase {
|
1692 | type: 'dist-hydrate-script';
|
1693 | dir?: string;
|
1694 | |
1695 |
|
1696 |
|
1697 |
|
1698 |
|
1699 | external?: string[];
|
1700 | empty?: boolean;
|
1701 | }
|
1702 | export interface OutputTargetCustom extends OutputTargetBase {
|
1703 | type: 'custom';
|
1704 | name: string;
|
1705 | validate?: (config: Config, diagnostics: Diagnostic[]) => void;
|
1706 | generator: (config: Config, compilerCtx: any, buildCtx: any, docs: any) => Promise<void>;
|
1707 | copy?: CopyTask[];
|
1708 | }
|
1709 | export interface OutputTargetDocsVscode extends OutputTargetBase {
|
1710 | type: 'docs-vscode';
|
1711 | file: string;
|
1712 | sourceCodeBaseUrl?: string;
|
1713 | }
|
1714 | export interface OutputTargetDocsReadme extends OutputTargetBase {
|
1715 | type: 'docs-readme';
|
1716 | dir?: string;
|
1717 | dependencies?: boolean;
|
1718 | footer?: string;
|
1719 | strict?: boolean;
|
1720 | }
|
1721 | export interface OutputTargetDocsJson extends OutputTargetBase {
|
1722 | type: 'docs-json';
|
1723 | file: string;
|
1724 | typesFile?: string | null;
|
1725 | strict?: boolean;
|
1726 | }
|
1727 | export interface OutputTargetDocsCustom extends OutputTargetBase {
|
1728 | type: 'docs-custom';
|
1729 | generator: (docs: JsonDocs, config: Config) => void | Promise<void>;
|
1730 | strict?: boolean;
|
1731 | }
|
1732 | export interface OutputTargetStats extends OutputTargetBase {
|
1733 | type: 'stats';
|
1734 | file?: string;
|
1735 | }
|
1736 | export interface OutputTargetBaseNext {
|
1737 | type: string;
|
1738 | dir?: string;
|
1739 | }
|
1740 | export interface OutputTargetDistCustomElements extends OutputTargetBaseNext {
|
1741 | type: 'dist-custom-elements';
|
1742 | empty?: boolean;
|
1743 | externalRuntime?: boolean;
|
1744 | copy?: CopyTask[];
|
1745 | inlineDynamicImports?: boolean;
|
1746 | includeGlobalScripts?: boolean;
|
1747 | minify?: boolean;
|
1748 | }
|
1749 | export interface OutputTargetDistCustomElementsBundle extends OutputTargetBaseNext {
|
1750 | type: 'dist-custom-elements-bundle';
|
1751 | empty?: boolean;
|
1752 | externalRuntime?: boolean;
|
1753 | copy?: CopyTask[];
|
1754 | inlineDynamicImports?: boolean;
|
1755 | includeGlobalScripts?: boolean;
|
1756 | minify?: boolean;
|
1757 | }
|
1758 | export interface OutputTargetBase {
|
1759 | type: string;
|
1760 | }
|
1761 | export declare type OutputTargetBuild = OutputTargetDistCollection | OutputTargetDistLazy;
|
1762 | export interface OutputTargetAngular extends OutputTargetBase {
|
1763 | type: 'angular';
|
1764 | componentCorePackage: string;
|
1765 | directivesProxyFile?: string;
|
1766 | directivesArrayFile?: string;
|
1767 | directivesUtilsFile?: string;
|
1768 | excludeComponents?: string[];
|
1769 | }
|
1770 | export interface OutputTargetCopy extends OutputTargetBase {
|
1771 | type: 'copy';
|
1772 | dir: string;
|
1773 | copy?: CopyTask[];
|
1774 | copyAssets?: 'collection' | 'dist';
|
1775 | }
|
1776 | export interface OutputTargetWww extends OutputTargetBase {
|
1777 | |
1778 |
|
1779 |
|
1780 | type: 'www';
|
1781 | |
1782 |
|
1783 |
|
1784 |
|
1785 |
|
1786 | buildDir?: string;
|
1787 | |
1788 |
|
1789 |
|
1790 |
|
1791 |
|
1792 | dir?: string;
|
1793 | |
1794 |
|
1795 |
|
1796 |
|
1797 | empty?: boolean;
|
1798 | |
1799 |
|
1800 |
|
1801 |
|
1802 |
|
1803 | indexHtml?: string;
|
1804 | |
1805 |
|
1806 |
|
1807 |
|
1808 |
|
1809 |
|
1810 |
|
1811 |
|
1812 |
|
1813 |
|
1814 |
|
1815 | copy?: CopyTask[];
|
1816 | |
1817 |
|
1818 |
|
1819 |
|
1820 |
|
1821 |
|
1822 | baseUrl?: string;
|
1823 | |
1824 |
|
1825 |
|
1826 |
|
1827 |
|
1828 | polyfills?: boolean;
|
1829 | |
1830 |
|
1831 |
|
1832 |
|
1833 |
|
1834 |
|
1835 |
|
1836 |
|
1837 |
|
1838 |
|
1839 | prerenderConfig?: string;
|
1840 | |
1841 |
|
1842 |
|
1843 |
|
1844 |
|
1845 |
|
1846 | serviceWorker?: ServiceWorkerConfig | null | false;
|
1847 | appDir?: string;
|
1848 | }
|
1849 | export declare type OutputTarget = OutputTargetAngular | OutputTargetCopy | OutputTargetCustom | OutputTargetDist | OutputTargetDistCollection | OutputTargetDistCustomElements | OutputTargetDistCustomElementsBundle | OutputTargetDistLazy | OutputTargetDistGlobalStyles | OutputTargetDistLazyLoader | OutputTargetDocsJson | OutputTargetDocsCustom | OutputTargetDocsReadme | OutputTargetDocsVscode | OutputTargetWww | OutputTargetHydrate | OutputTargetStats | OutputTargetDistTypes;
|
1850 | export interface ServiceWorkerConfig {
|
1851 | unregister?: boolean;
|
1852 | swDest?: string;
|
1853 | swSrc?: string;
|
1854 | globPatterns?: string[];
|
1855 | globDirectory?: string | string[];
|
1856 | globIgnores?: string | string[];
|
1857 | templatedUrls?: any;
|
1858 | maximumFileSizeToCacheInBytes?: number;
|
1859 | manifestTransforms?: any;
|
1860 | modifyUrlPrefix?: any;
|
1861 | dontCacheBustURLsMatching?: RegExp;
|
1862 | navigateFallback?: string;
|
1863 | navigateFallbackWhitelist?: RegExp[];
|
1864 | navigateFallbackBlacklist?: RegExp[];
|
1865 | cacheId?: string;
|
1866 | skipWaiting?: boolean;
|
1867 | clientsClaim?: boolean;
|
1868 | directoryIndex?: string;
|
1869 | runtimeCaching?: any[];
|
1870 | ignoreUrlParametersMatching?: any[];
|
1871 | handleFetch?: boolean;
|
1872 | }
|
1873 | export interface LoadConfigInit {
|
1874 | |
1875 |
|
1876 |
|
1877 |
|
1878 | config?: Config;
|
1879 | |
1880 |
|
1881 |
|
1882 |
|
1883 | configPath?: string;
|
1884 | logger?: Logger;
|
1885 | sys?: CompilerSystem;
|
1886 | |
1887 |
|
1888 |
|
1889 |
|
1890 |
|
1891 | initTsConfig?: boolean;
|
1892 | }
|
1893 | export interface LoadConfigResults {
|
1894 | config: Config;
|
1895 | diagnostics: Diagnostic[];
|
1896 | tsconfig: {
|
1897 | path: string;
|
1898 | compilerOptions: any;
|
1899 | files: string[];
|
1900 | include: string[];
|
1901 | exclude: string[];
|
1902 | extends: string;
|
1903 | };
|
1904 | }
|
1905 | export interface Diagnostic {
|
1906 | level: 'error' | 'warn' | 'info' | 'log' | 'debug';
|
1907 | type: string;
|
1908 | header?: string;
|
1909 | language?: string;
|
1910 | messageText: string;
|
1911 | debugText?: string;
|
1912 | code?: string;
|
1913 | absFilePath?: string;
|
1914 | relFilePath?: string;
|
1915 | lineNumber?: number;
|
1916 | columnNumber?: number;
|
1917 | lines?: {
|
1918 | lineIndex: number;
|
1919 | lineNumber: number;
|
1920 | text?: string;
|
1921 | errorCharStart: number;
|
1922 | errorLength?: number;
|
1923 | }[];
|
1924 | }
|
1925 | export interface CacheStorage {
|
1926 | get(key: string): Promise<any>;
|
1927 | set(key: string, value: any): Promise<void>;
|
1928 | }
|
1929 | export interface WorkerOptions {
|
1930 | maxConcurrentWorkers?: number;
|
1931 | maxConcurrentTasksPerWorker?: number;
|
1932 | logger?: Logger;
|
1933 | }
|
1934 | export interface RollupInterface {
|
1935 | rollup: {
|
1936 | (config: any): Promise<any>;
|
1937 | };
|
1938 | plugins: {
|
1939 | nodeResolve(opts: any): any;
|
1940 | replace(opts: any): any;
|
1941 | commonjs(opts: any): any;
|
1942 | json(): any;
|
1943 | };
|
1944 | }
|
1945 | export interface ResolveModuleOptions {
|
1946 | manuallyResolve?: boolean;
|
1947 | packageJson?: boolean;
|
1948 | }
|
1949 | export interface PrerenderStartOptions {
|
1950 | buildId?: string;
|
1951 | hydrateAppFilePath: string;
|
1952 | componentGraph: BuildResultsComponentGraph;
|
1953 | srcIndexHtmlPath: string;
|
1954 | }
|
1955 | export interface PrerenderResults {
|
1956 | buildId: string;
|
1957 | diagnostics: Diagnostic[];
|
1958 | urls: number;
|
1959 | duration: number;
|
1960 | average: number;
|
1961 | }
|
1962 | export interface OptimizeCssInput {
|
1963 | input: string;
|
1964 | filePath?: string;
|
1965 | autoprefixer?: any;
|
1966 | minify?: boolean;
|
1967 | sourceMap?: boolean;
|
1968 | resolveUrl?: (url: string) => Promise<string> | string;
|
1969 | }
|
1970 | export interface OptimizeCssOutput {
|
1971 | output: string;
|
1972 | diagnostics: Diagnostic[];
|
1973 | }
|
1974 | export interface OptimizeJsInput {
|
1975 | input: string;
|
1976 | filePath?: string;
|
1977 | target?: 'es5' | 'latest';
|
1978 | pretty?: boolean;
|
1979 | sourceMap?: boolean;
|
1980 | }
|
1981 | export interface OptimizeJsOutput {
|
1982 | output: string;
|
1983 | sourceMap: any;
|
1984 | diagnostics: Diagnostic[];
|
1985 | }
|
1986 | export interface LazyRequire {
|
1987 | ensure(fromDir: string, moduleIds: string[]): Promise<Diagnostic[]>;
|
1988 | require(fromDir: string, moduleId: string): any;
|
1989 | getModulePath(fromDir: string, moduleId: string): string;
|
1990 | }
|
1991 | export interface FsWatcherItem {
|
1992 | close(): void;
|
1993 | }
|
1994 | export interface MakeDirectoryOptions {
|
1995 | |
1996 |
|
1997 |
|
1998 |
|
1999 | recursive?: boolean;
|
2000 | |
2001 |
|
2002 |
|
2003 |
|
2004 | mode?: number;
|
2005 | }
|
2006 | export interface FsStats {
|
2007 | isFile(): boolean;
|
2008 | isDirectory(): boolean;
|
2009 | isBlockDevice(): boolean;
|
2010 | isCharacterDevice(): boolean;
|
2011 | isSymbolicLink(): boolean;
|
2012 | isFIFO(): boolean;
|
2013 | isSocket(): boolean;
|
2014 | dev: number;
|
2015 | ino: number;
|
2016 | mode: number;
|
2017 | nlink: number;
|
2018 | uid: number;
|
2019 | gid: number;
|
2020 | rdev: number;
|
2021 | size: number;
|
2022 | blksize: number;
|
2023 | blocks: number;
|
2024 | atime: Date;
|
2025 | mtime: Date;
|
2026 | ctime: Date;
|
2027 | birthtime: Date;
|
2028 | }
|
2029 | export interface FsWriteOptions {
|
2030 | inMemoryOnly?: boolean;
|
2031 | clearFileCache?: boolean;
|
2032 | immediateWrite?: boolean;
|
2033 | useCache?: boolean;
|
2034 | outputTargetType?: string;
|
2035 | }
|
2036 | export interface Compiler {
|
2037 | build(): Promise<CompilerBuildResults>;
|
2038 | createWatcher(): Promise<CompilerWatcher>;
|
2039 | destroy(): Promise<void>;
|
2040 | sys: CompilerSystem;
|
2041 | }
|
2042 | export interface CompilerWatcher extends BuildOnEvents {
|
2043 | start: () => Promise<WatcherCloseResults>;
|
2044 | close: () => Promise<WatcherCloseResults>;
|
2045 | request: (data: CompilerRequest) => Promise<CompilerRequestResponse>;
|
2046 | }
|
2047 | export interface CompilerRequest {
|
2048 | path?: string;
|
2049 | }
|
2050 | export interface WatcherCloseResults {
|
2051 | exitCode: number;
|
2052 | }
|
2053 | export interface CompilerRequestResponse {
|
2054 | path: string;
|
2055 | nodeModuleId: string;
|
2056 | nodeModuleVersion: string;
|
2057 | nodeResolvedPath: string;
|
2058 | cachePath: string;
|
2059 | cacheHit: boolean;
|
2060 | content: string;
|
2061 | status: number;
|
2062 | }
|
2063 | export interface TranspileOptions {
|
2064 | |
2065 |
|
2066 |
|
2067 |
|
2068 | componentExport?: 'customelement' | 'module' | string | undefined;
|
2069 | |
2070 |
|
2071 |
|
2072 |
|
2073 |
|
2074 |
|
2075 | componentMetadata?: 'runtimestatic' | 'compilerstatic' | string | undefined;
|
2076 | |
2077 |
|
2078 |
|
2079 |
|
2080 | coreImportPath?: string;
|
2081 | |
2082 |
|
2083 |
|
2084 | currentDirectory?: string;
|
2085 | |
2086 |
|
2087 |
|
2088 | file?: string;
|
2089 | |
2090 |
|
2091 |
|
2092 |
|
2093 | module?: 'cjs' | 'esm' | string;
|
2094 | /**
|
2095 | * Sets how and if any properties, methods and events are proxied on the
|
2096 | * component class. The `defineproperty` value sets the getters and setters
|
2097 | * using Object.defineProperty. Default is `defineproperty`.
|
2098 | */
|
2099 | proxy?: 'defineproperty' | string | undefined;
|
2100 | /**
|
2101 | * How component styles should be associated to the component. The `static`
|
2102 | * setting will assign the styles as a static getter on the component class.
|
2103 | */
|
2104 | style?: 'static' | string | undefined;
|
2105 | /**
|
2106 | * How style data should be added for imports. For example, the `queryparams` value
|
2107 | * adds the component's tagname and encapsulation info as querystring parameter
|
2108 | * to the style's import, such as `style.css?tag=my-tag&encapsulation=shadow`. This
|
2109 | * style data can be used by bundlers to further optimize each component's css.
|
2110 | * Set to `null` to not include the querystring parameters. Default is `queryparams`.
|
2111 | */
|
2112 | styleImportData?: 'queryparams' | string | undefined;
|
2113 | /**
|
2114 | * The JavaScript source target TypeScript should to transpile to. Values can be
|
2115 | * `latest`, `esnext`, `es2017`, `es2015`, or `es5`. Defaults to `latest`.
|
2116 | */
|
2117 | target?: CompileTarget;
|
2118 | /**
|
2119 | * Create a source map. Using `inline` will inline the source map into the
|
2120 | * code, otherwise the source map will be in the returned `map` property.
|
2121 | * Default is `true`.
|
2122 | */
|
2123 | sourceMap?: boolean | 'inline';
|
2124 | /**
|
2125 | * Base directory to resolve non-relative module names. Same as the `baseUrl`
|
2126 | * TypeScript compiler option: https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping
|
2127 | */
|
2128 | baseUrl?: string;
|
2129 | /**
|
2130 | * List of path mapping entries for module names to locations relative to the `baseUrl`.
|
2131 | * Same as the `paths` TypeScript compiler option:
|
2132 | * https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping
|
2133 | */
|
2134 | paths?: {
|
2135 | [key: string]: string[];
|
2136 | };
|
2137 | |
2138 |
|
2139 |
|
2140 | sys?: CompilerSystem;
|
2141 | }
|
2142 | export declare type CompileTarget = 'latest' | 'esnext' | 'es2020' | 'es2019' | 'es2018' | 'es2017' | 'es2015' | 'es5' | string | undefined;
|
2143 | export interface TranspileResults {
|
2144 | code: string;
|
2145 | data?: any[];
|
2146 | diagnostics: Diagnostic[];
|
2147 | imports?: {
|
2148 | path: string;
|
2149 | }[];
|
2150 | inputFileExtension: string;
|
2151 | inputFilePath: string;
|
2152 | map: any;
|
2153 | outputFilePath: string;
|
2154 | }
|
2155 | export interface TransformOptions {
|
2156 | coreImportPath: string;
|
2157 | componentExport: 'lazy' | 'module' | 'customelement' | null;
|
2158 | componentMetadata: 'runtimestatic' | 'compilerstatic' | null;
|
2159 | currentDirectory: string;
|
2160 | file?: string;
|
2161 | isolatedModules?: boolean;
|
2162 | module?: 'cjs' | 'esm';
|
2163 | proxy: 'defineproperty' | null;
|
2164 | style: 'static' | null;
|
2165 | styleImportData: 'queryparams' | null;
|
2166 | target?: string;
|
2167 | }
|
2168 | export interface CompileScriptMinifyOptions {
|
2169 | target?: CompileTarget;
|
2170 | pretty?: boolean;
|
2171 | }
|
2172 | export interface DevServer extends BuildEmitEvents {
|
2173 | address: string;
|
2174 | basePath: string;
|
2175 | browserUrl: string;
|
2176 | protocol: string;
|
2177 | port: number;
|
2178 | root: string;
|
2179 | close(): Promise<void>;
|
2180 | }
|
2181 | export interface CliInitOptions {
|
2182 | args: string[];
|
2183 | logger: Logger;
|
2184 | sys: CompilerSystem;
|
2185 | }
|