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,
|
||||
resolveBuildDependenciesSnapshot
|
||||
) {
|
||||
/** @type {Pack | (() => Pack) } */
|
||||
this.data = data;
|
||||
this.version = version;
|
||||
this.buildSnapshot = buildSnapshot;
|
||||
|
@ -1286,8 +1287,8 @@ class PackFileCacheStrategy {
|
|||
if (buildSnapshotValid && resolveValid) {
|
||||
logger.time("restore cache content metadata");
|
||||
const d =
|
||||
/** @type {PackContainer & { data: () => Pack }} */
|
||||
(packContainer).data();
|
||||
/** @type {() => Pack} */
|
||||
(packContainer.data)();
|
||||
logger.timeEnd("restore cache content metadata");
|
||||
return d;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue