mirror of https://github.com/webpack/webpack.git
fix: types
This commit is contained in:
parent
160395c94b
commit
31f983ec38
|
@ -51,6 +51,7 @@ class PackContainer {
|
||||||
resolveResults,
|
resolveResults,
|
||||||
resolveBuildDependenciesSnapshot
|
resolveBuildDependenciesSnapshot
|
||||||
) {
|
) {
|
||||||
|
/** @type {Pack | (() => Pack) } */
|
||||||
this.data = data;
|
this.data = data;
|
||||||
this.version = version;
|
this.version = version;
|
||||||
this.buildSnapshot = buildSnapshot;
|
this.buildSnapshot = buildSnapshot;
|
||||||
|
@ -1286,8 +1287,8 @@ class PackFileCacheStrategy {
|
||||||
if (buildSnapshotValid && resolveValid) {
|
if (buildSnapshotValid && resolveValid) {
|
||||||
logger.time("restore cache content metadata");
|
logger.time("restore cache content metadata");
|
||||||
const d =
|
const d =
|
||||||
/** @type {PackContainer & { data: () => Pack }} */
|
/** @type {() => Pack} */
|
||||||
(packContainer).data();
|
(packContainer.data)();
|
||||||
logger.timeEnd("restore cache content metadata");
|
logger.timeEnd("restore cache content metadata");
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue