mirror of https://github.com/webpack/webpack.git
fix: type (#19881)
This commit is contained in:
parent
407de36dfb
commit
6529f8c789
|
@ -53,10 +53,15 @@ class PackContainer {
|
|||
) {
|
||||
/** @type {Pack | (() => Pack) } */
|
||||
this.data = data;
|
||||
/** @type {string} */
|
||||
this.version = version;
|
||||
/** @type {Snapshot} */
|
||||
this.buildSnapshot = buildSnapshot;
|
||||
/** @type {BuildDependencies} */
|
||||
this.buildDependencies = buildDependencies;
|
||||
/** @type {ResolveResults} */
|
||||
this.resolveResults = resolveResults;
|
||||
/** @type {Snapshot} */
|
||||
this.resolveBuildDependenciesSnapshot = resolveBuildDependenciesSnapshot;
|
||||
}
|
||||
|
||||
|
@ -105,10 +110,15 @@ class PackItemInfo {
|
|||
* @param {Data} value fresh value of item
|
||||
*/
|
||||
constructor(identifier, etag, value) {
|
||||
/** @type {string} */
|
||||
this.identifier = identifier;
|
||||
/** @type {string | null | undefined} */
|
||||
this.etag = etag;
|
||||
/** @type {number} */
|
||||
this.location = -1;
|
||||
/** @type {number} */
|
||||
this.lastAccess = Date.now();
|
||||
/** @type {Data} */
|
||||
this.freshValue = value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -96,7 +96,6 @@ class SerializerMiddleware {
|
|||
* @template TLazyOutputValue
|
||||
* @template {LazyTarget} TLazyTarget
|
||||
* @template {Record<string, EXPECTED_ANY>} TLazyOptions
|
||||
* @template TLazySerializedValue
|
||||
* @param {LazyFunction<TLazyInputValue, TLazyOutputValue, TLazyTarget, TLazyOptions>} fn lazy function
|
||||
* @returns {LazyOptions | undefined} options
|
||||
*/
|
||||
|
@ -123,7 +122,7 @@ class SerializerMiddleware {
|
|||
* @template TLazyOutputValue
|
||||
* @template {LazyTarget} TLazyTarget
|
||||
* @template {LazyOptions} TLazyOptions
|
||||
* @param {LazyFunction<TLazyInputValue, TLazyOutputValue, LazyTarget, LazyOptions>} fn lazy function
|
||||
* @param {LazyFunction<TLazyInputValue, TLazyOutputValue, TLazyTarget, TLazyOptions>} fn lazy function
|
||||
* @param {TLazyOutputValue} value serialized value
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -168,7 +167,6 @@ class SerializerMiddleware {
|
|||
/**
|
||||
* @template TLazyInputValue SerializedValue
|
||||
* @template TLazyOutputValue DeserializedValue
|
||||
* @template SerializedValue
|
||||
* @template {LazyTarget} TLazyTarget
|
||||
* @template {LazyOptions | undefined} TLazyOptions
|
||||
* @param {LazyFunction<TLazyInputValue, TLazyOutputValue, TLazyTarget, TLazyOptions>} lazy lazy function
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
new Map().entries();
|
||||
|
||||
/**
|
||||
* The StackedCacheMap is a data structure designed as an alternative to a Map
|
||||
* in situations where you need to handle multiple item additions and
|
||||
|
|
Loading…
Reference in New Issue