Skip to content

Commit abcf532

Browse files
committed
update typescript
1 parent ec98c0b commit abcf532

4 files changed

Lines changed: 18 additions & 20 deletions

File tree

lib/ProgressPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const createDefaultHandler = (profile, logger) => {
9696
/**
9797
* @callback ReportProgress
9898
* @param {number} p
99-
* @param {...string[]} [args]
99+
* @param {...string} [args]
100100
* @returns {void}
101101
*/
102102

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@
9898
"style-loader": "^2.0.0",
9999
"terser": "^5.7.0",
100100
"toml": "^3.0.0",
101-
"tooling": "webpack/tooling#v1.20.1",
101+
"tooling": "webpack/tooling#v1.21.0",
102102
"ts-loader": "^8.0.2",
103-
"typescript": "^4.2.0-beta",
103+
"typescript": "^4.5.5",
104104
"url-loader": "^4.1.0",
105105
"wast-loader": "^1.11.0",
106106
"webassembly-feature": "1.3.0",

types.d.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4462,12 +4462,12 @@ declare class Hash {
44624462
constructor();
44634463

44644464
/**
4465-
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
4465+
* Update hash {@link https ://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
44664466
*/
44674467
update(data: string | Buffer, inputEncoding?: string): Hash;
44684468

44694469
/**
4470-
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
4470+
* Calculates the digest {@link https ://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
44714471
*/
44724472
digest(encoding?: string): string | Buffer;
44734473
}
@@ -5355,7 +5355,7 @@ declare class JavascriptParser extends Parser {
53555355
setVariable(name: string, variableInfo: ExportedVariableInfo): void;
53565356
parseCommentOptions(
53575357
range?: any
5358-
): { options: null; errors: null } | { options: object; errors: any[] };
5358+
): { options: null; errors: null } | { options: object; errors: unknown[] };
53595359
extractMemberExpressionChain(expression: MemberExpression): {
53605360
members: string[];
53615361
object:
@@ -6034,9 +6034,8 @@ declare class LazySet<T> {
60346034
has(item: T): boolean;
60356035
keys(): IterableIterator<T>;
60366036
values(): IterableIterator<T>;
6037-
[Symbol.iterator](): IterableIterator<T>;
6038-
readonly [Symbol.toStringTag]: string;
60396037
serialize(__0: { write: any }): void;
6038+
[Symbol.iterator](): IterableIterator<T>;
60406039
static deserialize(__0: { read: any }): LazySet<any>;
60416040
}
60426041
declare interface LibIdentOptions {
@@ -7709,8 +7708,8 @@ type NormalizedStatsOptions = KnownNormalizedStatsOptions &
77097708
Omit<
77107709
StatsOptions,
77117710
| "context"
7712-
| "requestShortener"
77137711
| "chunkGroups"
7712+
| "requestShortener"
77147713
| "chunksSort"
77157714
| "modulesSort"
77167715
| "chunkModulesSort"
@@ -8987,7 +8986,7 @@ declare class ProgressPlugin {
89878986
showModules?: boolean;
89888987
showDependencies?: boolean;
89898988
showActiveModules?: boolean;
8990-
percentBy?: null | "dependencies" | "modules" | "entries";
8989+
percentBy?: null | "modules" | "dependencies" | "entries";
89918990
apply(compiler: Compiler | MultiCompiler): void;
89928991
static getReporter(
89938992
compiler: Compiler
@@ -9048,7 +9047,7 @@ declare interface ProgressPluginOptions {
90489047
/**
90499048
* Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent.
90509049
*/
9051-
percentBy?: null | "dependencies" | "modules" | "entries";
9050+
percentBy?: null | "modules" | "dependencies" | "entries";
90529051

90539052
/**
90549053
* Collect profile data for progress steps. Default: false.
@@ -10173,8 +10172,8 @@ declare class RuntimeSpecSet {
1017310172
constructor(iterable?: any);
1017410173
add(runtime?: any): void;
1017510174
has(runtime?: any): boolean;
10176-
[Symbol.iterator](): IterableIterator<RuntimeSpec>;
1017710175
readonly size: number;
10176+
[Symbol.iterator](): IterableIterator<RuntimeSpec>;
1017810177
}
1017910178
declare abstract class RuntimeTemplate {
1018010179
compilation: Compilation;
@@ -10871,7 +10870,6 @@ declare abstract class SortableSet<T> extends Set<T> {
1087110870
* Iterates over values in the set.
1087210871
*/
1087310872
[Symbol.iterator](): IterableIterator<T>;
10874-
readonly [Symbol.toStringTag]: string;
1087510873
}
1087610874
declare class Source {
1087710875
constructor();

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5795,9 +5795,9 @@ toml@^3.0.0:
57955795
resolved "https://registry.yarnpkg.com/toml/-/toml-3.0.0.tgz#342160f1af1904ec9d204d03a5d61222d762c5ee"
57965796
integrity sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==
57975797

5798-
tooling@webpack/tooling#v1.20.1:
5799-
version "1.20.1"
5800-
resolved "https://codeload.github.com/webpack/tooling/tar.gz/de45245f12f7650dd64954919876b4c08b2b7c97"
5798+
tooling@webpack/tooling#v1.21.0:
5799+
version "1.21.0"
5800+
resolved "https://codeload.github.com/webpack/tooling/tar.gz/2e849403e5608b110e869b599442f89d7004e920"
58015801
dependencies:
58025802
"@yarnpkg/lockfile" "^1.1.0"
58035803
ajv "^8.1.0"
@@ -5937,10 +5937,10 @@ typedarray-to-buffer@^3.1.5:
59375937
dependencies:
59385938
is-typedarray "^1.0.0"
59395939

5940-
typescript@^4.2.0-beta:
5941-
version "4.2.4"
5942-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
5943-
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==
5940+
typescript@^4.5.5:
5941+
version "4.5.5"
5942+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3"
5943+
integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
59445944

59455945
uglify-js@^3.1.4:
59465946
version "3.13.5"

0 commit comments

Comments
 (0)