UNPKG

1.47 kBTypeScriptView Raw
1export = loader;
2/**
3 * @this {import("webpack").LoaderContext<LoaderOptions>}
4 * @param {string} content
5 */
6declare function loader(
7 this: import("webpack").LoaderContext<MiniCssExtractPlugin.LoaderOptions>,
8 content: string
9): string | undefined;
10declare namespace loader {
11 export {
12 pitch,
13 Schema,
14 Compiler,
15 Compilation,
16 Chunk,
17 Module,
18 Source,
19 AssetInfo,
20 NormalModule,
21 LoaderOptions,
22 Locals,
23 TODO,
24 Dependency,
25 };
26}
27import MiniCssExtractPlugin = require("./index");
28/**
29 * @this {import("webpack").LoaderContext<LoaderOptions>}
30 * @param {string} request
31 */
32declare function pitch(
33 this: import("webpack").LoaderContext<MiniCssExtractPlugin.LoaderOptions>,
34 request: string
35): void;
36type Schema = import("schema-utils/declarations/validate").Schema;
37type Compiler = import("webpack").Compiler;
38type Compilation = import("webpack").Compilation;
39type Chunk = import("webpack").Chunk;
40type Module = import("webpack").Module;
41type Source = import("webpack").sources.Source;
42type AssetInfo = import("webpack").AssetInfo;
43type NormalModule = import("webpack").NormalModule;
44type LoaderOptions = import("./index.js").LoaderOptions;
45type Locals = {
46 [key: string]: string | Function;
47};
48type TODO = any;
49type Dependency = {
50 identifier: string;
51 context: string | null;
52 content: Buffer;
53 media: string;
54 supports?: string | undefined;
55 layer?: string | undefined;
56 sourceMap?: Buffer | undefined;
57};