mirror of https://github.com/webpack/webpack.git
fix: types
This commit is contained in:
parent
635d102e79
commit
7a929533dd
|
|
@ -124,8 +124,11 @@ class ResolverCachePlugin {
|
|||
const newResolveContext = {
|
||||
...resolveContext,
|
||||
stack: new Set(),
|
||||
/** @type {LazySet<string>} */
|
||||
missingDependencies: new LazySet(),
|
||||
/** @type {LazySet<string>} */
|
||||
fileDependencies: new LazySet(),
|
||||
/** @type {LazySet<string>} */
|
||||
contextDependencies: new LazySet()
|
||||
};
|
||||
let yieldResult;
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class LazySet {
|
|||
|
||||
/**
|
||||
* @param {T} item an item
|
||||
* @returns {this} itself
|
||||
* @returns {LazySet<T>} itself
|
||||
*/
|
||||
add(item) {
|
||||
this._set.add(item);
|
||||
|
|
@ -99,7 +99,7 @@ class LazySet {
|
|||
|
||||
/**
|
||||
* @param {Iterable<T> | LazySet<T>} iterable a immutable iterable or another immutable LazySet which will eventually be merged into the Set
|
||||
* @returns {this} itself
|
||||
* @returns {LazySet<T>} itself
|
||||
*/
|
||||
addAll(iterable) {
|
||||
if (this._deopt) {
|
||||
|
|
@ -200,8 +200,9 @@ class LazySet {
|
|||
}
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @param {ObjectDeserializerContext} context context
|
||||
* @returns {LazySet<any>} deserialized LazySet
|
||||
* @returns {LazySet<T>} deserialized LazySet
|
||||
*/
|
||||
static deserialize({ read }) {
|
||||
const count = read();
|
||||
|
|
|
|||
|
|
@ -6206,7 +6206,7 @@ declare class LazySet<T> {
|
|||
values(): IterableIterator<T>;
|
||||
serialize(__0: ObjectSerializerContext): void;
|
||||
[Symbol.iterator](): IterableIterator<T>;
|
||||
static deserialize(__0: ObjectDeserializerContext): LazySet<any>;
|
||||
static deserialize<T>(__0: ObjectDeserializerContext): LazySet<T>;
|
||||
}
|
||||
declare interface LibIdentOptions {
|
||||
/**
|
||||
|
|
@ -8001,6 +8001,7 @@ declare class NullDependencyTemplate extends DependencyTemplate {
|
|||
}
|
||||
declare interface ObjectDeserializerContext {
|
||||
read: () => any;
|
||||
setCircularReference: (arg0?: any) => void;
|
||||
}
|
||||
declare interface ObjectSerializer {
|
||||
serialize: (arg0: any, arg1: ObjectSerializerContext) => void;
|
||||
|
|
@ -8008,6 +8009,7 @@ declare interface ObjectSerializer {
|
|||
}
|
||||
declare interface ObjectSerializerContext {
|
||||
write: (arg0?: any) => void;
|
||||
setCircularReference: (arg0?: any) => void;
|
||||
}
|
||||
declare class OccurrenceChunkIdsPlugin {
|
||||
constructor(options?: OccurrenceChunkIdsPluginOptions);
|
||||
|
|
|
|||
Loading…
Reference in New Issue