1 | import { Chalk } from 'chalk';
|
2 | import * as typescript from 'typescript';
|
3 | import { FilePathKey, LoaderOptions, ResolvedModule, ReverseDependencyGraph, TSInstance, WebpackError, WebpackModule } from './interfaces';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare function formatErrors(diagnostics: ReadonlyArray<typescript.Diagnostic> | undefined, loaderOptions: LoaderOptions, colors: Chalk, compiler: typeof typescript, merge: {
|
9 | file?: string;
|
10 | module?: WebpackModule;
|
11 | }, context: string): WebpackError[];
|
12 | export declare function fsReadFile(fileName: string, encoding?: string | undefined): string | undefined;
|
13 | export declare function makeError(loaderOptions: LoaderOptions, message: string, file: string | undefined, location?: {
|
14 | line: number;
|
15 | character: number;
|
16 | }): WebpackError;
|
17 | export declare function tsLoaderSource(loaderOptions: LoaderOptions): string;
|
18 | export declare function appendSuffixIfMatch(patterns: (RegExp | string)[], filePath: string, suffix: string): string;
|
19 | export declare function appendSuffixesIfMatch(suffixDict: {
|
20 | [suffix: string]: (RegExp | string)[];
|
21 | }, filePath: string): string;
|
22 | export declare function unorderedRemoveItem<T>(array: T[], item: T): boolean;
|
23 | export declare function populateDependencyGraph(resolvedModules: ResolvedModule[], instance: TSInstance, containingFile: string): void;
|
24 | export declare function populateReverseDependencyGraph(instance: TSInstance): ReverseDependencyGraph;
|
25 |
|
26 |
|
27 |
|
28 | export declare function collectAllDependants(reverseDependencyGraph: ReverseDependencyGraph, fileName: FilePathKey, result?: Map<FilePathKey, true>): Map<FilePathKey, true>;
|
29 | export declare function arrify<T>(val: T | T[]): T[];
|
30 | export declare function ensureProgram(instance: TSInstance): typescript.Program | undefined;
|
31 | export declare function supportsSolutionBuild(instance: TSInstance): boolean;
|
32 | export declare function isReferencedFile(instance: TSInstance, filePath: string): boolean;
|
33 | export declare function useCaseSensitiveFileNames(compiler: typeof typescript, loaderOptions: LoaderOptions): boolean;
|
34 |
|
\ | No newline at end of file |