Skip to content

Commit a132d0b

Browse files
authored
feat(types): improve type map (#80)
1 parent e94e902 commit a132d0b

17 files changed

Lines changed: 5288 additions & 3967 deletions

File tree

HEAD_COMMIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b5499e05b0c1c2847545a610cbaea3d352328d3d
1+
0b60f1cba10640d886510999c1bfbca5f4ba7ab6

pages/v5.x/_media/WORKING_GROUP.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,26 @@ Each member of the working group is required to adhere to the [governance model
2323

2424
## Members
2525

26-
- [snitin315](https://github.com/snitin315) -
26+
- [@alexander-akait](https://github.com/alexander-akait) -
27+
**Alexander Akait**
28+
- [@avivkeller](https://github.com/avivkeller) -
29+
**Aviv Keller** <<me@aviv.sh>> (he/him)
30+
- [@hai-x](https://github.com/hai-x) -
31+
**hai-x** <<haijie0619@gmail.com>>
32+
- [@jhnns](https://github.com/jhnns) -
33+
**Johannes Ewald** <<mail@johannesewald.de>> (he/him)
34+
- [@joshwiens](https://github.com/joshwiens) -
35+
**Joshua Wiens** <<joshuaw@easymetrics.com>>
36+
- [@sokra](https://github.com/sokra) -
37+
**Tobias Koppers** <<tobias.koppers@googlemail.com>>
38+
- [@snitin315](https://github.com/snitin315) -
2739
**Nitin Kumar** <<snitin315@gmail.com>> (he/him)
28-
- [thelarkinn](https://github.com/thelarkinn) -
29-
**Sean Larkin** <<selarkin@microsoft.com>> (he/him)
30-
- [jhnns](https://github.com/jhnns) -
31-
**Johannes Ewald** <<mail@johannesewald.de>>
32-
- [sokra](https://github.com/sokra) -
33-
**Tobias Koppers** <<jackworks@protonmail.co>>
34-
- [spacek33z](https://github.com/spacek33z) -
35-
**Kees Kluskens** <<kees@webduck.nl>>
40+
- [@spacek33z](https://github.com/spacek33z) -
41+
**Kees Kluskens** <<kees@kees.im>>
42+
- [@thelarkinn](https://github.com/thelarkinn) -
43+
**Sean Larkin** <<selarkin@microsoft.com>>
44+
- [@xiaoxiaojx](https://github.com/xiaoxiaojx) -
45+
**Xiao** <<784487301@qq.com>> (he/him)
3646

3747
## Communication
3848

pages/v5.x/globals.md

Lines changed: 3 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ Apply the plugin
177177

178178
#### `get(identifier, etag, callback)`
179179

180-
###### T
181-
182-
`T`
183180
* `identifier` {string}
184181
* `etag` {Etag}
185182
* `callback` {CallbackCacheCache<T>}
@@ -192,9 +189,6 @@ Apply the plugin
192189

193190
#### `store(identifier, etag, data, callback)`
194191

195-
###### T
196-
197-
`T`
198192
* `identifier` {string}
199193
* `etag` {Etag}
200194
* `data` {T}
@@ -1857,9 +1851,6 @@ Fetches a module from a compilation by its identifier
18571851

18581852
#### `validate(schema, value[, options][, check])`
18591853

1860-
###### T
1861-
1862-
`T` *extends* {object|object[]} = {object}
18631854
* `schema` {JSONSchema4|ExtendedSchema|JSONSchema6|ExtendedSchema|JSONSchema7|ExtendedSchema|object}
18641855
* `value` {T}
18651856
* `options` {ValidationErrorConfiguration}
@@ -2087,13 +2078,13 @@ Apply the plugin
20872078
* `weak` {boolean}
20882079
* `EXPORTS_OBJECT_REFERENCED` {string[][]}
20892080
* `NO_EXPORTS_REFERENCED` {string[][]}
2090-
* `TRANSITIVE` {TRANSITIVE}
2081+
* `TRANSITIVE` {symbol}
20912082

20922083
### Methods
20932084

20942085
#### `couldAffectReferencingModule()`
20952086

2096-
* Returns: {boolean|TRANSITIVE}
2087+
* Returns: {boolean|symbol}
20972088

20982089
#### `createIgnoredModule(context)`
20992090

@@ -3418,17 +3409,10 @@ Note that if "contextRegExp" is given, both the "resourceRegExp" and "contextReg
34183409

34193410
### Type Parameters
34203411

3421-
#### GenerateContext
3422-
3423-
`GenerateContext`
3424-
34253412
### Constructors
34263413

34273414
#### `new InitFragment(content, stage, position[, key][, endContent])`
34283415

3429-
###### GenerateContext
3430-
3431-
`GenerateContext`
34323416
* `content` {string|Source}
34333417
* `stage` {number}
34343418
* `position` {number}
@@ -3475,9 +3459,6 @@ Note that if "contextRegExp" is given, both the "resourceRegExp" and "contextReg
34753459

34763460
#### Static method: `addToSource(source, initFragments, context)`
34773461

3478-
###### Context
3479-
3480-
`Context`
34813462
* `source` {Source}
34823463
* `initFragments` {MaybeMergeableInitFragment<Context>[]}
34833464
* `context` {Context}
@@ -4095,13 +4076,6 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead
40954076

40964077
#### `cached(fn, args)`
40974078

4098-
###### T
4099-
4100-
`T` *extends* {any[]}
4101-
4102-
###### R
4103-
4104-
`R`
41054079
* `fn` {object}
41064080
* `args` {T}
41074081
* Returns: {R}
@@ -4121,17 +4095,6 @@ In webpack 6, call getSourceBasicTypes() directly on the module instance instead
41214095

41224096
#### `dependencyCacheProvide(dependency, args)`
41234097

4124-
###### D
4125-
4126-
`D` *extends* {Dependency}
4127-
4128-
###### ARGS
4129-
4130-
`ARGS` *extends* {any[]}
4131-
4132-
###### R
4133-
4134-
`R`
41354098
* `dependency` {D}
41364099
* `args` {Tuple<ARGS, unknown>}
41374100
* Returns: {R}
@@ -6488,14 +6451,6 @@ Options for library.
64886451

64896452
### Type Parameters
64906453

6491-
#### OptionsType
6492-
6493-
`OptionsType` = {object}
6494-
6495-
#### ContextAdditions
6496-
6497-
`ContextAdditions` = {object}
6498-
64996454
* `this` {NormalModuleLoaderContext<OptionsType>|LoaderRunnerLoaderContext<OptionsType>|LoaderPluginLoaderContext|HotModuleReplacementPluginLoaderContext|ContextAdditions}
65006455
* `content` {string}
65016456
* `sourceMap` {string|RawSourceMap}
@@ -6508,14 +6463,6 @@ Options for library.
65086463

65096464
### Type Parameters
65106465

6511-
#### OptionsType
6512-
6513-
`OptionsType` = {object}
6514-
6515-
#### ContextAdditions
6516-
6517-
`ContextAdditions` = {object}
6518-
65196466
### Properties
65206467

65216468
* `default` {RawLoaderDefinitionFunction<OptionsType, ContextAdditions>|LoaderDefinitionFunction<OptionsType, ContextAdditions>}
@@ -6649,6 +6596,7 @@ Specify options for each parser.
66496596
* `filename` {string}
66506597
* `hash` {string}
66516598
* `hashWithLength` {object}
6599+
* `local` {string}
66526600
* `module` {Module|ModulePathData}
66536601
* `noChunkHash` {boolean}
66546602
* `prepareId` {object}
@@ -6662,14 +6610,6 @@ Specify options for each parser.
66626610

66636611
### Type Parameters
66646612

6665-
#### OptionsType
6666-
6667-
`OptionsType` = {object}
6668-
6669-
#### ContextAdditions
6670-
6671-
`ContextAdditions` = {object}
6672-
66736613
* `this` {NormalModuleLoaderContext<OptionsType>|LoaderRunnerLoaderContext<OptionsType>|LoaderPluginLoaderContext|HotModuleReplacementPluginLoaderContext|ContextAdditions}
66746614
* `remainingRequest` {string}
66756615
* `previousRequest` {string}
@@ -6695,14 +6635,6 @@ Specify options for each parser.
66956635

66966636
### Type Parameters
66976637

6698-
#### OptionsType
6699-
6700-
`OptionsType` = {object}
6701-
6702-
#### ContextAdditions
6703-
6704-
`ContextAdditions` = {object}
6705-
67066638
* `this` {NormalModuleLoaderContext<OptionsType>|LoaderRunnerLoaderContext<OptionsType>|LoaderPluginLoaderContext|HotModuleReplacementPluginLoaderContext|ContextAdditions}
67076639
* `content` {Buffer}
67086640
* `sourceMap` {string|RawSourceMap}
@@ -7078,10 +7010,6 @@ Plugin instance.
70787010
70797011
### Type Parameters
70807012

7081-
#### OptionsType
7082-
7083-
`OptionsType`
7084-
70857013
***
70867014

70877015
## Type: `LoaderDefinition`
@@ -7095,14 +7023,6 @@ Plugin instance.
70957023

70967024
### Type Parameters
70977025

7098-
#### OptionsType
7099-
7100-
`OptionsType` = {object}
7101-
7102-
#### ContextAdditions
7103-
7104-
`ContextAdditions` = {object}
7105-
71067026
***
71077027

71087028
## Type: `MultiConfiguration`
@@ -7128,14 +7048,6 @@ Plugin instance.
71287048

71297049
### Type Parameters
71307050

7131-
#### OptionsType
7132-
7133-
`OptionsType` = {object}
7134-
7135-
#### ContextAdditions
7136-
7137-
`ContextAdditions` = {object}
7138-
71397051
***
71407052

71417053
## Type: `RenderManifestEntry`

pages/v5.x/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,15 @@ or are automatically applied via regex from your webpack configuration.
164164
| Name | Status | Install Size | Description |
165165
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------: | :--------------: | :-------------------------------------------------------------------------------------- |
166166
| <a href="https://github.com/webpack-contrib/html-loader"><img width="48" height="48" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/html5/html5-original.svg"></a> | ![html-npm] | ![html-size] | Exports HTML as string, requires references to static resources |
167-
| <a href="https://github.com/pugjs/pug-loader"><img width="48" height="48" src="https://cdn.rawgit.com/pugjs/pug-logo/master/SVG/pug-final-logo-_-colour-128.svg"></a> | ![pug-npm] | ![pug-size] | Loads Pug templates and returns a function |
168-
| <a href="https://github.com/webdiscus/pug-loader"><img width="48" height="48" src="https://cdn.rawgit.com/pugjs/pug-logo/master/SVG/pug-final-logo-_-colour-128.svg"></a> | ![pug3-npm] | ![pug3-size] | Compiles Pug to a function or HTML string, useful for use with Vue, React, Angular |
167+
| <a href="https://github.com/webdiscus/pug-loader"><img width="48" height="48" src="https://cdn.rawgit.com/pugjs/pug-logo/master/SVG/pug-final-logo-_-colour-128.svg"></a> | ![pug-npm] | ![pug-size] | Compiles Pug to a function or HTML string, useful for use with Vue, React, Angular |
169168
| <a href="https://github.com/peerigon/markdown-loader"><img width="48" height="48" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/markdown/markdown-original.svg"></a> | ![md-npm] | ![md-size] | Compiles Markdown to HTML |
170169
| <a href="https://github.com/posthtml/posthtml-loader"><img width="48" height="48" src="https://posthtml.github.io/posthtml/logo.svg"></a> | ![posthtml-npm] | ![posthtml-size] | Loads and transforms a HTML file using [PostHTML](https://github.com/posthtml/posthtml) |
171170
| <a href="https://github.com/pcardune/handlebars-loader"><img width="48" height="48" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/handlebars/handlebars-original.svg"></a> | ![hbs-npm] | ![hbs-size] | Compiles Handlebars to HTML |
172171

173172
[html-npm]: https://img.shields.io/npm/v/html-loader.svg
174173
[html-size]: https://packagephobia.com/badge?p=html-loader
175-
[pug-npm]: https://img.shields.io/npm/v/pug-loader.svg
176-
[pug-size]: https://packagephobia.com/badge?p=pug-loader
177-
[pug3-npm]: https://img.shields.io/npm/v/@webdiscus/pug-loader.svg
178-
[pug3-size]: https://packagephobia.com/badge?p=@webdiscus/pug-loader
174+
[pug-npm]: https://img.shields.io/npm/v/@webdiscus/pug-loader.svg
175+
[pug-size]: https://packagephobia.com/badge?p=@webdiscus/pug-loader
179176
[jade-npm]: https://img.shields.io/npm/v/jade-loader.svg
180177
[jade-size]: https://packagephobia.com/badge?p=jade-loader
181178
[md-npm]: https://img.shields.io/npm/v/markdown-loader.svg

0 commit comments

Comments
 (0)