Skip to content

Commit f0738d2

Browse files
authored
Enable noImplicitOverride in local builds. (#5881)
1 parent 656f538 commit f0738d2

31 files changed

Lines changed: 113 additions & 43 deletions

File tree

apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class CustomMarkdownEmitter extends MarkdownEmitter {
3333
this._apiModel = apiModel;
3434
}
3535

36-
public emit(
36+
public override emit(
3737
stringBuilder: StringBuilder,
3838
docNode: DocNode,
3939
options: ICustomMarkdownEmitterOptions

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

Lines changed: 2 additions & 2 deletions
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 override context!: MarkdownDocumenterFeatureContext;
7979

8080
/**
8181
* This event occurs before each markdown file is written. It provides an opportunity to customize the
@@ -94,7 +94,7 @@ export class MarkdownDocumenterFeature extends PluginFeature {
9494
// (implemented by child class)
9595
}
9696

97-
public static [Symbol.hasInstance](instance: object): boolean {
97+
public static override [Symbol.hasInstance](instance: object): boolean {
9898
return TypeUuid.isInstanceOf(instance, uuidMarkdownDocumenterFeature);
9999
}
100100
}

build-tests/api-documenter-scenarios/src/inheritedMembers/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ export class Class2<T> extends Namespace1.Class3 {
4141

4242
/** Some method. Overrides `Class3.someMethod`. */
4343
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
44-
someMethod(x: boolean): void {}
44+
override someMethod(x: boolean): void {}
4545
}
4646

4747
/** @public */
4848
export class Class1 extends Class2<number> {
4949
/** A second prop. Overrides `Class2.secondProp`. */
5050
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
51-
secondProp: boolean;
51+
override secondProp: boolean;
5252

5353
/** A fourth prop */
5454
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
5555
fourthProp: number;
5656

5757
/** Some overload. Overrides `Class3.someOverload`. */
5858
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
59-
someOverload(x: boolean | string): void {}
59+
override someOverload(x: boolean | string): void {}
6060
}
6161

6262
/** @public */

build-tests/api-extractor-test-05/dist/tsdoc-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"toolPackages": [
66
{
77
"packageName": "@microsoft/api-extractor",
8-
"packageVersion": "7.58.10"
8+
"packageVersion": "7.58.11"
99
}
1010
]
1111
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@microsoft/api-documenter"
7+
}
8+
],
9+
"packageName": "@microsoft/api-documenter",
10+
"email": "iclanton@users.noreply.github.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@microsoft/rush"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "iclanton@users.noreply.github.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@rushstack/hashed-folder-copy-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/hashed-folder-copy-plugin",
10+
"email": "iclanton@users.noreply.github.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@rushstack/set-webpack-public-path-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/set-webpack-public-path-plugin",
10+
"email": "iclanton@users.noreply.github.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@rushstack/stream-collator"
7+
}
8+
],
9+
"packageName": "@rushstack/stream-collator",
10+
"email": "iclanton@users.noreply.github.com"
11+
}

libraries/rush-lib/src/api/LastInstallFlag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class LastInstallFlag extends FlagFile<Partial<ILastInstallFlagJson>> {
8989
/**
9090
* Returns true if the file exists and the contents match the current state.
9191
*/
92-
public async isValidAsync(): Promise<boolean> {
92+
public override async isValidAsync(): Promise<boolean> {
9393
return await this._isValidAsync(false, {});
9494
}
9595

0 commit comments

Comments
 (0)