diff --git a/docs/globals.html b/docs/globals.html index be6d0224..48fb4461 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -3264,7 +3264,7 @@

ModulesOptions

ModulesOptions: { exportGlobals?: ScopeOptions["exportGlobals"]; failOnWrongOrder?: ExtractImportsOptions["failOnWrongOrder"]; generateScopedName?: string | ScopeOptions["generateScopedName"]; getJSON?: undefined | ((file: string, json: {}, out?: undefined | string) => void); mode?: LocalByDefaultOptions["mode"] }
diff --git a/docs/index.html b/docs/index.html index a72300c7..71ded10d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3265,7 +3265,7 @@

ModulesOptions

ModulesOptions: { exportGlobals?: ScopeOptions["exportGlobals"]; failOnWrongOrder?: ExtractImportsOptions["failOnWrongOrder"]; generateScopedName?: string | ScopeOptions["generateScopedName"]; getJSON?: undefined | ((file: string, json: {}, out?: undefined | string) => void); mode?: LocalByDefaultOptions["mode"] }
diff --git a/docs/interfaces/extracteddata.html b/docs/interfaces/extracteddata.html index bfdd49e0..c9ad3c53 100644 --- a/docs/interfaces/extracteddata.html +++ b/docs/interfaces/extracteddata.html @@ -2786,7 +2786,7 @@

code

code: string
@@ -2801,7 +2801,7 @@

codeFileName

codeFileName: string
@@ -2816,7 +2816,7 @@

Optional map

map: undefined | string
@@ -2831,7 +2831,7 @@

mapFileName

mapFileName: string
diff --git a/docs/interfaces/loader.html b/docs/interfaces/loader.html index 92a83dfe..7027c8cf 100644 --- a/docs/interfaces/loader.html +++ b/docs/interfaces/loader.html @@ -2759,6 +2759,11 @@

Type parameters

  • LoaderOptionsType

    +
    +
    +

    type of loader's options

    +
    +
@@ -2794,7 +2799,7 @@

Optional alwaysProcessalwaysProcess: undefined | false | true

@@ -2809,7 +2814,7 @@

name

name: string
@@ -2824,7 +2829,7 @@

process

process: (this: LoaderContext<LoaderOptionsType>, input: Payload) => Promise<Payload> | Payload
@@ -2863,7 +2868,7 @@

Optional test

test: RegExp | ((filepath: string) => boolean)
diff --git a/docs/interfaces/loadercontext.html b/docs/interfaces/loadercontext.html index f254cb9e..6646189a 100644 --- a/docs/interfaces/loadercontext.html +++ b/docs/interfaces/loadercontext.html @@ -2768,6 +2768,11 @@

Type parameters

  • LoaderOptionsType

    +
    +
    +

    type of loader's options

    +
    +
@@ -2806,7 +2811,7 @@

dependencies

dependencies: Set<string>
@@ -2821,7 +2826,7 @@

error

error: PluginContext["error"]
@@ -2836,7 +2841,7 @@

id

id: string
@@ -2851,7 +2856,7 @@

options

options: LoaderOptionsType
@@ -2871,7 +2876,7 @@

plugin

plugin: PluginContext
@@ -2886,7 +2891,7 @@

Optional sourceMap

sourceMap: boolean | "inline"
@@ -2903,7 +2908,7 @@

warn

warn: PluginContext["warn"]
diff --git a/docs/interfaces/options.html b/docs/interfaces/options.html index 3b0c9120..75df858d 100644 --- a/docs/interfaces/options.html +++ b/docs/interfaces/options.html @@ -2846,7 +2846,7 @@

Optional autoModules

autoModules: undefined | false | true
@@ -2871,7 +2871,7 @@

Optional config

config: boolean | PostCSSLoadConfigOptions
@@ -2891,7 +2891,7 @@

Optional exclude

exclude: string | RegExp | (string | RegExp)[]
@@ -2911,7 +2911,7 @@

Optional extensions

extensions: string[]
@@ -2931,7 +2931,7 @@

Optional extract

extract: boolean | string
@@ -2952,7 +2952,7 @@

Optional include

include: string | RegExp | (string | RegExp)[]
@@ -2972,7 +2972,7 @@

Optional inject

inject: boolean | { container?: HTMLElement; prepend?: undefined | false | true; singleTag?: undefined | false | true } | ((varname: string, id: string) => string)
@@ -2994,7 +2994,7 @@

Optional loaders

loaders: Loader[]
@@ -3014,7 +3014,7 @@

Optional minimize

minimize: boolean | CssNanoOptions
@@ -3035,7 +3035,7 @@

Optional modules

modules: boolean | ModulesOptions
@@ -3056,7 +3056,7 @@

Optional namedExports

namedExports: boolean | ((name: string) => string)
@@ -3077,7 +3077,7 @@

Optional onExtract

onExtract: undefined | ((fn: () => ExtractedData) => boolean)
@@ -3098,7 +3098,7 @@

Optional onImport

onImport: undefined | ((code: string, id: string) => void)
@@ -3118,7 +3118,7 @@

Optional parser

parser: string | PostCSSParser
@@ -3138,7 +3138,7 @@

Optional plugins

plugins: PostCSSPlugin<unknown>[]
@@ -3158,7 +3158,7 @@

Optional sourceMap

sourceMap: boolean | "inline"
@@ -3178,7 +3178,7 @@

Optional stringifier

stringifier: string | PostCSSStringifier
@@ -3198,7 +3198,7 @@

Optional syntax

syntax: string | PostCSSSyntax
@@ -3218,7 +3218,7 @@

Optional use

use: (string | [string, {}])[] | { less?: ObjectWithUnknownProps; sass?: SASSLoaderOptions & ObjectWithUnknownProps; stylus?: ObjectWithUnknownProps }
diff --git a/docs/interfaces/payload.html b/docs/interfaces/payload.html index e22fcc98..948d671a 100644 --- a/docs/interfaces/payload.html +++ b/docs/interfaces/payload.html @@ -2782,7 +2782,7 @@

code

code: string
@@ -2797,7 +2797,7 @@

Optional extracted

extracted: undefined | { code: string; id: string; map?: undefined | string }
@@ -2812,7 +2812,7 @@

Optional map

map: undefined | string
diff --git a/src/types.ts b/src/types.ts index e52bb3b0..8419ca09 100644 --- a/src/types.ts +++ b/src/types.ts @@ -101,7 +101,10 @@ export interface LoadersOptions { extensions: string[]; } -/** Loader */ +/** + * Loader + * @param LoaderOptionsType type of loader's options + * */ export interface Loader { /** Name */ name: string; @@ -118,7 +121,8 @@ export interface Loader { /** * Loader's context - */ + * @param LoaderOptionsType type of loader's options + * */ export interface LoaderContext { /** * Loader's options @@ -139,9 +143,7 @@ export interface LoaderContext { plugin: PluginContext; } -/** - * Loader's payload - */ +/** Loader's payload */ export interface Payload { /** File content */ code: string;