Skip to content

Commit c1d8c9f

Browse files
Copilotdmichon-msft
andcommitted
Fix TS2612 build errors and change major bumps to minor
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
1 parent 6dfcf01 commit c1d8c9f

9 files changed

Lines changed: 27 additions & 7 deletions

File tree

apps/api-documenter/src/plugin/MarkdownDocumenterFeature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const uuidMarkdownDocumenterFeature: string = '34196154-9eb3-4de0-a8c8-7e9539dfe
7575
*/
7676
export class MarkdownDocumenterFeature extends PluginFeature {
7777
/** {@inheritdoc PluginFeature.context} */
78-
public context!: MarkdownDocumenterFeatureContext;
78+
public declare context: MarkdownDocumenterFeatureContext;
7979

8080
/**
8181
* This event occurs before each markdown file is written. It provides an opportunity to customize the
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/api-documenter",
5+
"comment": "Add 'declare' modifier to fix TS2612 property redeclaration errors when targeting ES2022",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/api-documenter"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush-lib",
5+
"comment": "Add 'declare' modifier to fix TS2612 property redeclaration errors when targeting ES2022",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/rush-lib"
10+
}

common/changes/@rushstack/heft-jest-plugin/update-node-target-es2022_2026-02-24-00-08.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"packageName": "@rushstack/heft-jest-plugin",
55
"comment": "Update TypeScript compilation target to es2022 to match the minimum supported Node.js version (18.15.0)",
6-
"type": "major"
6+
"type": "minor"
77
}
88
],
99
"packageName": "@rushstack/heft-jest-plugin"

common/changes/@rushstack/heft-node-rig/update-node-target-es2022_2026-02-24-00-08.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"packageName": "@rushstack/heft-node-rig",
55
"comment": "Update TypeScript compilation target to es2022 to match the minimum supported Node.js version (18.15.0)",
6-
"type": "major"
6+
"type": "minor"
77
}
88
],
99
"packageName": "@rushstack/heft-node-rig"

common/changes/@rushstack/heft-vscode-extension-rig/update-node-target-es2022_2026-02-24-00-08.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"packageName": "@rushstack/heft-vscode-extension-rig",
55
"comment": "Update TypeScript compilation target to es2022 to match the minimum supported Node.js version (18.15.0)",
6-
"type": "major"
6+
"type": "minor"
77
}
88
],
99
"packageName": "@rushstack/heft-vscode-extension-rig"

common/changes/@rushstack/ts-command-line/update-node-target-es2022_2026-02-24-00-08.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"packageName": "@rushstack/ts-command-line",
55
"comment": "Update TypeScript compilation target to es2022 to match the minimum supported Node.js version (18.15.0)",
6-
"type": "major"
6+
"type": "minor"
77
}
88
],
99
"packageName": "@rushstack/ts-command-line"

common/changes/@rushstack/webpack5-module-minifier-plugin/update-node-target-es2022_2026-02-24-00-08.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"packageName": "@rushstack/webpack5-module-minifier-plugin",
55
"comment": "Update TypeScript compilation target to es2022 to match the minimum supported Node.js version (18.15.0)",
6-
"type": "major"
6+
"type": "minor"
77
}
88
],
99
"packageName": "@rushstack/webpack5-module-minifier-plugin"

libraries/rush-lib/src/cli/actions/BaseRushAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export abstract class BaseRushAction extends BaseConfiglessRushAction {
115115
return this._eventHooksManager;
116116
}
117117

118-
protected readonly rushConfiguration!: RushConfiguration;
118+
protected declare readonly rushConfiguration: RushConfiguration;
119119

120120
protected override async onExecuteAsync(): Promise<void> {
121121
if (!this.rushConfiguration) {

0 commit comments

Comments
 (0)