This commit is contained in:
John Reilly 2021-04-20 09:01:52 +01:00
commit 25c80ea9bc
1 changed files with 7 additions and 5 deletions

View File

@ -9,7 +9,7 @@ export interface LoaderContext {
getOptions(schema: Schema): any; getOptions(schema: Schema): any;
emitWarning(warning: Error | string): void; emitWarning(warning: Error | string): void;
emitError(error: Error | string): void; emitError(error: Error | string): void;
getLogger(name: string): Compilation["logger"]; getLogger(name: string): import("../lib/logging/Logger").Logger;
resolve(context: string, request: string, callback: any): any; resolve(context: string, request: string, callback: any): any;
getResolve( getResolve(
options: Configuration options: Configuration
@ -26,8 +26,8 @@ export interface LoaderContext {
contextify: (context: string, request: string) => string; contextify: (context: string, request: string) => string;
}; };
rootContext: string; rootContext: string;
webpack: boolean; webpack?: boolean;
sourceMap: boolean; sourceMap?: boolean;
mode: Mode; mode: Mode;
_module: NormalModule; _module: NormalModule;
_compilation: Compilation; _compilation: Compilation;
@ -57,7 +57,9 @@ export interface EmptyContextAdditions {
async(): ( async(): (
err: Error | undefined | null, err: Error | undefined | null,
content?: string | Buffer, content?: string | Buffer,
sourceMap?: string | any sourceMap?: string | RawSourceMap,
additionalData?: Record<string, any>,
...args: any[]
) => void | undefined; ) => void | undefined;
/** /**