diff --git a/apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts b/apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts index 5f8769d3720..69c0efbdc2f 100644 --- a/apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts +++ b/apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts @@ -27,8 +27,7 @@ export class ExperimentalYamlDocumenter extends YamlDocumenter { this._generateTocPointersMap(this._config.tocConfig); } - /** @override */ - protected buildYamlTocFile(apiItems: ReadonlyArray): IYamlTocFile { + protected override buildYamlTocFile(apiItems: ReadonlyArray): IYamlTocFile { this._buildTocItems2(apiItems); return this._config.tocConfig; } diff --git a/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts b/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts index b8b178a9ce1..df82c0caa2b 100644 --- a/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts +++ b/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts @@ -53,8 +53,7 @@ export class OfficeYamlDocumenter extends YamlDocumenter { this._snippetsAll = yaml.load(snippetsContent, { filename: snippetsFilePath }) as ISnippetsFile; } - /** @override */ - public generateFiles(outputFolder: string): void { + public override generateFiles(outputFolder: string): void { super.generateFiles(outputFolder); // After we generate everything, check for any unused snippets @@ -64,8 +63,7 @@ export class OfficeYamlDocumenter extends YamlDocumenter { } } - /** @override */ - protected onGetTocRoot(): IYamlTocItem { + protected override onGetTocRoot(): IYamlTocItem { return { name: 'API reference', href: 'overview.md', @@ -73,8 +71,7 @@ export class OfficeYamlDocumenter extends YamlDocumenter { }; } - /** @override */ - protected onCustomizeYamlItem(yamlItem: IYamlItem): void { + protected override onCustomizeYamlItem(yamlItem: IYamlItem): void { const nameWithoutPackage: string = yamlItem.uid.replace(/^[^.]+\!/, ''); if (yamlItem.summary) { yamlItem.summary = this._fixupApiSet(yamlItem.summary, yamlItem.uid); diff --git a/apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts b/apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts index 5ec5bc9e90f..d16710bcba1 100644 --- a/apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts +++ b/apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts @@ -41,8 +41,11 @@ export class CustomMarkdownEmitter extends MarkdownEmitter { return super.emit(stringBuilder, docNode, options); } - /** @override */ - protected writeNode(docNode: DocNode, context: IMarkdownEmitterContext, docNodeSiblings: boolean): void { + protected override writeNode( + docNode: DocNode, + context: IMarkdownEmitterContext, + docNodeSiblings: boolean + ): void { const writer: IndentedWriter = context.writer; switch (docNode.kind) { @@ -156,8 +159,7 @@ export class CustomMarkdownEmitter extends MarkdownEmitter { } } - /** @override */ - protected writeLinkTagWithCodeDestination( + protected override writeLinkTagWithCodeDestination( docLinkTag: DocLinkTag, context: IMarkdownEmitterContext ): void { diff --git a/apps/api-documenter/src/nodes/DocEmphasisSpan.ts b/apps/api-documenter/src/nodes/DocEmphasisSpan.ts index bc2197689fc..1f1a5304d5b 100644 --- a/apps/api-documenter/src/nodes/DocEmphasisSpan.ts +++ b/apps/api-documenter/src/nodes/DocEmphasisSpan.ts @@ -27,8 +27,7 @@ export class DocEmphasisSpan extends DocNodeContainer { this.italic = !!parameters.italic; } - /** @override */ - public get kind(): string { + public override get kind(): string { return CustomDocNodeKind.EmphasisSpan; } } diff --git a/apps/api-documenter/src/nodes/DocHeading.ts b/apps/api-documenter/src/nodes/DocHeading.ts index ee40a8bb6bc..f29eeb46be5 100644 --- a/apps/api-documenter/src/nodes/DocHeading.ts +++ b/apps/api-documenter/src/nodes/DocHeading.ts @@ -34,8 +34,7 @@ export class DocHeading extends DocNode { } } - /** @override */ - public get kind(): string { + public override get kind(): string { return CustomDocNodeKind.Heading; } } diff --git a/apps/api-documenter/src/nodes/DocNoteBox.ts b/apps/api-documenter/src/nodes/DocNoteBox.ts index cccece1460c..bc6d09ab39a 100644 --- a/apps/api-documenter/src/nodes/DocNoteBox.ts +++ b/apps/api-documenter/src/nodes/DocNoteBox.ts @@ -21,13 +21,11 @@ export class DocNoteBox extends DocNode { this.content = new DocSection({ configuration: this.configuration }, sectionChildNodes); } - /** @override */ - public get kind(): string { + public override get kind(): string { return CustomDocNodeKind.NoteBox; } - /** @override */ - protected onGetChildNodes(): ReadonlyArray { + protected override onGetChildNodes(): ReadonlyArray { return [this.content]; } } diff --git a/apps/api-documenter/src/nodes/DocTable.ts b/apps/api-documenter/src/nodes/DocTable.ts index 945098a4adb..43da35b609b 100644 --- a/apps/api-documenter/src/nodes/DocTable.ts +++ b/apps/api-documenter/src/nodes/DocTable.ts @@ -54,8 +54,7 @@ export class DocTable extends DocNode { } } - /** @override */ - public get kind(): string { + public override get kind(): string { return CustomDocNodeKind.Table; } @@ -73,8 +72,7 @@ export class DocTable extends DocNode { return row; } - /** @override */ - protected onGetChildNodes(): ReadonlyArray { + protected override onGetChildNodes(): ReadonlyArray { return [this.header, ...this._rows]; } } diff --git a/apps/api-documenter/src/nodes/DocTableCell.ts b/apps/api-documenter/src/nodes/DocTableCell.ts index f0911dbfd59..ce07c0ef084 100644 --- a/apps/api-documenter/src/nodes/DocTableCell.ts +++ b/apps/api-documenter/src/nodes/DocTableCell.ts @@ -22,8 +22,7 @@ export class DocTableCell extends DocNode { this.content = new DocSection({ configuration: this.configuration }, sectionChildNodes); } - /** @override */ - public get kind(): string { + public override get kind(): string { return CustomDocNodeKind.TableCell; } } diff --git a/apps/api-documenter/src/nodes/DocTableRow.ts b/apps/api-documenter/src/nodes/DocTableRow.ts index 85bd873d907..bf215b7c6d1 100644 --- a/apps/api-documenter/src/nodes/DocTableRow.ts +++ b/apps/api-documenter/src/nodes/DocTableRow.ts @@ -28,8 +28,7 @@ export class DocTableRow extends DocNode { } } - /** @override */ - public get kind(): string { + public override get kind(): string { return CustomDocNodeKind.TableRow; } @@ -58,8 +57,7 @@ export class DocTableRow extends DocNode { return cell; } - /** @override */ - protected onGetChildNodes(): ReadonlyArray { + protected override onGetChildNodes(): ReadonlyArray { return this._cells; } } diff --git a/apps/heft/src/configuration/HeftPluginDefinition.ts b/apps/heft/src/configuration/HeftPluginDefinition.ts index 4ce4bd0c19a..9c4a0114054 100644 --- a/apps/heft/src/configuration/HeftPluginDefinition.ts +++ b/apps/heft/src/configuration/HeftPluginDefinition.ts @@ -337,9 +337,10 @@ export class HeftLifecyclePluginDefinition extends HeftPluginDefinitionBase { /** * {@inheritDoc HeftPluginDefinitionBase.loadPluginAsync} - * @override */ - public loadPluginAsync(logger: IScopedLogger): Promise> { + public override loadPluginAsync( + logger: IScopedLogger + ): Promise> { return super.loadPluginAsync(logger); } } @@ -354,9 +355,10 @@ export class HeftTaskPluginDefinition extends HeftPluginDefinitionBase { /** * {@inheritDoc HeftPluginDefinitionBase.loadPluginAsync} - * @override */ - public loadPluginAsync(logger: IScopedLogger): Promise> { + public override loadPluginAsync( + logger: IScopedLogger + ): Promise> { return super.loadPluginAsync(logger); } } diff --git a/build-tests/api-extractor-test-05/dist/tsdoc-metadata.json b/build-tests/api-extractor-test-05/dist/tsdoc-metadata.json index 6d6e67145e4..3f4854626f4 100644 --- a/build-tests/api-extractor-test-05/dist/tsdoc-metadata.json +++ b/build-tests/api-extractor-test-05/dist/tsdoc-metadata.json @@ -5,7 +5,7 @@ "toolPackages": [ { "packageName": "@microsoft/api-extractor", - "packageVersion": "7.58.2" + "packageVersion": "7.58.10" } ] } diff --git a/common/changes/@microsoft/api-documenter/override-keywords_2026-07-16-18-10-15.json b/common/changes/@microsoft/api-documenter/override-keywords_2026-07-16-18-10-15.json new file mode 100644 index 00000000000..241df07a655 --- /dev/null +++ b/common/changes/@microsoft/api-documenter/override-keywords_2026-07-16-18-10-15.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Replace `@override` with the `override` keyword.", + "type": "patch", + "packageName": "@microsoft/api-documenter" + } + ], + "packageName": "@microsoft/api-documenter", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/api-extractor-model/override-keywords_2026-07-16-18-10-15.json b/common/changes/@microsoft/api-extractor-model/override-keywords_2026-07-16-18-10-15.json new file mode 100644 index 00000000000..c52d674714a --- /dev/null +++ b/common/changes/@microsoft/api-extractor-model/override-keywords_2026-07-16-18-10-15.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Replace `@override` with the `override` keyword.", + "type": "patch", + "packageName": "@microsoft/api-extractor-model" + } + ], + "packageName": "@microsoft/api-extractor-model", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/rush/override-keywords_2026-07-16-18-10-15.json b/common/changes/@microsoft/rush/override-keywords_2026-07-16-18-10-15.json new file mode 100644 index 00000000000..ccafc3c4416 --- /dev/null +++ b/common/changes/@microsoft/rush/override-keywords_2026-07-16-18-10-15.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Replace `@override` with the `override` keyword.", + "type": "none", + "packageName": "@microsoft/rush" + } + ], + "packageName": "@microsoft/rush", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-jest-plugin/override-keywords_2026-07-16-18-10-15.json b/common/changes/@rushstack/heft-jest-plugin/override-keywords_2026-07-16-18-10-15.json new file mode 100644 index 00000000000..69f27d9c3f6 --- /dev/null +++ b/common/changes/@rushstack/heft-jest-plugin/override-keywords_2026-07-16-18-10-15.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Replace `@override` with the `override` keyword.", + "type": "patch", + "packageName": "@rushstack/heft-jest-plugin" + } + ], + "packageName": "@rushstack/heft-jest-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft/override-keywords_2026-07-16-18-10-15.json b/common/changes/@rushstack/heft/override-keywords_2026-07-16-18-10-15.json new file mode 100644 index 00000000000..23ad0bd3a2d --- /dev/null +++ b/common/changes/@rushstack/heft/override-keywords_2026-07-16-18-10-15.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Replace `@override` with the `override` keyword.", + "type": "patch", + "packageName": "@rushstack/heft" + } + ], + "packageName": "@rushstack/heft", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/node-core-library/override-keywords_2026-07-16-18-10-15.json b/common/changes/@rushstack/node-core-library/override-keywords_2026-07-16-18-10-15.json new file mode 100644 index 00000000000..9bc5a177c0a --- /dev/null +++ b/common/changes/@rushstack/node-core-library/override-keywords_2026-07-16-18-10-15.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Replace `@override` with the `override` keyword.", + "type": "patch", + "packageName": "@rushstack/node-core-library" + } + ], + "packageName": "@rushstack/node-core-library", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/terminal/override-keywords_2026-07-16-18-10-15.json b/common/changes/@rushstack/terminal/override-keywords_2026-07-16-18-10-15.json new file mode 100644 index 00000000000..cdf7f6b824d --- /dev/null +++ b/common/changes/@rushstack/terminal/override-keywords_2026-07-16-18-10-15.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Replace `@override` with the `override` keyword.", + "type": "patch", + "packageName": "@rushstack/terminal" + } + ], + "packageName": "@rushstack/terminal", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/ts-command-line/override-keywords_2026-07-16-18-10-15.json b/common/changes/@rushstack/ts-command-line/override-keywords_2026-07-16-18-10-15.json new file mode 100644 index 00000000000..2c335160443 --- /dev/null +++ b/common/changes/@rushstack/ts-command-line/override-keywords_2026-07-16-18-10-15.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Replace `@override` with the `override` keyword.", + "type": "patch", + "packageName": "@rushstack/ts-command-line" + } + ], + "packageName": "@rushstack/ts-command-line", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/reviews/api/api-extractor-model.api.md b/common/reviews/api/api-extractor-model.api.md index dd3f5dab530..24a490492dc 100644 --- a/common/reviews/api/api-extractor-model.api.md +++ b/common/reviews/api/api-extractor-model.api.md @@ -48,13 +48,13 @@ export namespace ApiAbstractMixin { // @public export class ApiCallSignature extends ApiCallSignature_base { constructor(options: IApiCallSignatureOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(overloadIndex: number): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -63,22 +63,22 @@ export class ApiCallSignature extends ApiCallSignature_base { // @public export class ApiClass extends ApiClass_base { constructor(options: IApiClassOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; readonly extendsType: HeritageType | undefined; // (undocumented) static getContainerKey(name: string): string; get implementsTypes(): ReadonlyArray; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; // Warning: (ae-forgotten-export) The symbol "DeserializerContext" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "IApiClassJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) static onDeserializeInto(options: Partial, context: DeserializerContext, jsonObject: IApiClassJson): void; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -87,13 +87,13 @@ export class ApiClass extends ApiClass_base { // @public export class ApiConstructor extends ApiConstructor_base { constructor(options: IApiConstructorOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(overloadIndex: number): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -102,13 +102,13 @@ export class ApiConstructor extends ApiConstructor_base { // @public export class ApiConstructSignature extends ApiConstructSignature_base { constructor(options: IApiConstructSignatureOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(overloadIndex: number): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -122,9 +122,9 @@ export class ApiDeclaredItem extends ApiDocumentedItem { getExcerptWithModifiers(): string; // Warning: (ae-forgotten-export) The symbol "IApiDeclaredItemJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) static onDeserializeInto(options: Partial, context: DeserializerContext, jsonObject: IApiDeclaredItemJson): void; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; get sourceLocation(): SourceLocation; } @@ -132,11 +132,11 @@ export class ApiDeclaredItem extends ApiDocumentedItem { // @public export class ApiDocumentedItem extends ApiItem { constructor(options: IApiDocumentedItemOptions); - // @override (undocumented) + // (undocumented) static onDeserializeInto(options: Partial, context: DeserializerContext, jsonObject: IApiItemJson): void; // Warning: (ae-forgotten-export) The symbol "IApiDocumentedItemJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; // (undocumented) get tsdocComment(): tsdoc.DocComment | undefined; @@ -147,12 +147,12 @@ export class ApiDocumentedItem extends ApiItem { // @public export class ApiEntryPoint extends ApiEntryPoint_base { constructor(options: IApiEntryPointOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; get importPath(): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -161,17 +161,17 @@ export class ApiEntryPoint extends ApiEntryPoint_base { // @public export class ApiEnum extends ApiEnum_base { constructor(options: IApiEnumOptions); - // @override (undocumented) + // (undocumented) addMember(member: ApiEnumMember): void; - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; - // @override (undocumented) + // (undocumented) get members(): ReadonlyArray; } @@ -180,13 +180,13 @@ export class ApiEnum extends ApiEnum_base { // @public export class ApiEnumMember extends ApiEnumMember_base { constructor(options: IApiEnumMemberOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -196,7 +196,7 @@ export function ApiExportedMixin(baseCla // @public export interface ApiExportedMixin extends ApiItem { readonly isExported: boolean; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -210,13 +210,13 @@ export namespace ApiExportedMixin { // @public export class ApiFunction extends ApiFunction_base { constructor(options: IApiFunctionOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string, overloadIndex: number): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -225,13 +225,13 @@ export class ApiFunction extends ApiFunction_base { // @public export class ApiIndexSignature extends ApiIndexSignature_base { constructor(options: IApiIndexSignatureOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(overloadIndex: number): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -243,7 +243,7 @@ export interface ApiInitializerMixin extends ApiItem { readonly initializerExcerpt?: Excerpt; // Warning: (ae-forgotten-export) The symbol "IApiInitializerMixinJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -257,20 +257,20 @@ export namespace ApiInitializerMixin { // @public export class ApiInterface extends ApiInterface_base { constructor(options: IApiInterfaceOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; get extendsTypes(): ReadonlyArray; // (undocumented) static getContainerKey(name: string): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; // Warning: (ae-forgotten-export) The symbol "IApiInterfaceJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) static onDeserializeInto(options: Partial, context: DeserializerContext, jsonObject: IApiInterfaceJson): void; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -319,7 +319,7 @@ export interface ApiItemContainerMixin extends ApiItem { // @internal _getMergedSiblingsForMember(memberApiItem: ApiItem): ReadonlyArray; readonly preserveMemberOrder: boolean; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; tryGetMemberByKey(containerKey: string): ApiItem | undefined; } @@ -378,13 +378,13 @@ export enum ApiItemKind { // @public export class ApiMethod extends ApiMethod_base { constructor(options: IApiMethodOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string, isStatic: boolean, overloadIndex: number): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -393,13 +393,13 @@ export class ApiMethod extends ApiMethod_base { // @public export class ApiMethodSignature extends ApiMethodSignature_base { constructor(options: IApiMethodSignatureOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string, overloadIndex: number): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -408,13 +408,13 @@ export class ApiMethodSignature extends ApiMethodSignature_base { // @public export class ApiModel extends ApiModel_base { constructor(); - // @override (undocumented) + // (undocumented) addMember(member: ApiPackage): void; - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; // (undocumented) loadPackage(apiJsonFilename: string): ApiPackage; @@ -431,7 +431,7 @@ export function ApiNameMixin(baseClass: // @public export interface ApiNameMixin extends ApiItem { readonly name: string; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -445,13 +445,13 @@ export namespace ApiNameMixin { // @public export class ApiNamespace extends ApiNamespace_base { constructor(options: IApiNamespaceOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -461,7 +461,7 @@ export function ApiOptionalMixin(baseCla // @public export interface ApiOptionalMixin extends ApiItem { readonly isOptional: boolean; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -475,23 +475,23 @@ export namespace ApiOptionalMixin { // @public export class ApiPackage extends ApiPackage_base { constructor(options: IApiPackageOptions); - // @override (undocumented) + // (undocumented) addMember(member: ApiEntryPoint): void; - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) get entryPoints(): ReadonlyArray; // (undocumented) findEntryPointsByPath(importPath: string): ReadonlyArray; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; // (undocumented) static loadFromJsonFile(apiJsonFilename: string): ApiPackage; // Warning: (ae-forgotten-export) The symbol "IApiPackageJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) static onDeserializeInto(options: Partial, context: DeserializerContext, jsonObject: IApiPackageJson): void; // (undocumented) get projectFolderUrl(): string | undefined; @@ -521,13 +521,13 @@ export namespace ApiParameterListMixin { // @public export class ApiProperty extends ApiProperty_base { constructor(options: IApiPropertyOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string, isStatic: boolean): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -539,23 +539,23 @@ export class ApiPropertyItem extends ApiPropertyItem_base { get isEventProperty(): boolean; // Warning: (ae-forgotten-export) The symbol "IApiPropertyItemJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) static onDeserializeInto(options: Partial, context: DeserializerContext, jsonObject: IApiPropertyItemJson): void; readonly propertyTypeExcerpt: Excerpt; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } // @public export class ApiPropertySignature extends ApiPropertyItem { constructor(options: IApiPropertySignatureOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; } @@ -565,7 +565,7 @@ export function ApiProtectedMixin(baseCl // @public export interface ApiProtectedMixin extends ApiItem { readonly isProtected: boolean; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -595,7 +595,7 @@ export function ApiReleaseTagMixin(baseC // @public export interface ApiReleaseTagMixin extends ApiItem { readonly releaseTag: ReleaseTag; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -612,7 +612,7 @@ export interface ApiReturnTypeMixin extends ApiItem { readonly returnTypeExcerpt: Excerpt; // Warning: (ae-forgotten-export) The symbol "IApiReturnTypeMixinJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -627,7 +627,7 @@ export function ApiStaticMixin(baseClass // @public export interface ApiStaticMixin extends ApiItem { readonly isStatic: boolean; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; } @@ -641,19 +641,19 @@ export namespace ApiStaticMixin { // @public export class ApiTypeAlias extends ApiTypeAlias_base { constructor(options: IApiTypeAliasOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; // Warning: (ae-forgotten-export) The symbol "IApiTypeAliasJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) static onDeserializeInto(options: Partial, context: DeserializerContext, jsonObject: IApiTypeAliasJson): void; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; readonly typeExcerpt: Excerpt; } @@ -678,19 +678,19 @@ export namespace ApiTypeParameterListMixin { // @public export class ApiVariable extends ApiVariable_base { constructor(options: IApiVariableOptions); - // @beta @override (undocumented) + // @beta (undocumented) buildCanonicalReference(): DeclarationReference; - // @override (undocumented) + // (undocumented) get containerKey(): string; // (undocumented) static getContainerKey(name: string): string; - // @override (undocumented) + // (undocumented) get kind(): ApiItemKind; // Warning: (ae-forgotten-export) The symbol "IApiVariableJson" needs to be exported by the entry point index.d.ts // - // @override (undocumented) + // (undocumented) static onDeserializeInto(options: Partial, context: DeserializerContext, jsonObject: IApiVariableJson): void; - // @override (undocumented) + // (undocumented) serializeInto(jsonObject: Partial): void; readonly variableTypeExcerpt: Excerpt; } diff --git a/common/reviews/api/node-core-library.api.md b/common/reviews/api/node-core-library.api.md index 7b787350514..bb10f9b3d72 100644 --- a/common/reviews/api/node-core-library.api.md +++ b/common/reviews/api/node-core-library.api.md @@ -147,7 +147,6 @@ export class FileError extends Error { readonly projectFolder: string; // @internal (undocumented) static _sanitizedEnvironmentVariable: string | undefined; - // @override toString(): string; } @@ -534,7 +533,7 @@ export interface INodePackageJson { export class InternalError extends Error { constructor(message: string); static breakInDebugger: boolean; - // @override (undocumented) + // (undocumented) toString(): string; readonly unformattedMessage: string; } diff --git a/common/reviews/api/terminal.api.md b/common/reviews/api/terminal.api.md index c478b48bc2e..7dd9d256c60 100644 --- a/common/reviews/api/terminal.api.md +++ b/common/reviews/api/terminal.api.md @@ -344,11 +344,11 @@ export class NormalizeNewlinesTextRewriter extends TextRewriter { // @beta export class PrefixProxyTerminalProvider implements ITerminalProvider { constructor(options: IPrefixProxyTerminalProviderOptions); - // @override (undocumented) + // (undocumented) get eolCharacter(): string; - // @override (undocumented) + // (undocumented) get supportsColor(): boolean; - // @override (undocumented) + // (undocumented) write(data: string, severity: TerminalProviderSeverity): void; } @@ -516,7 +516,7 @@ export abstract class TerminalTransform extends TerminalWritable { // @sealed protected autocloseDestination(): void; readonly destination: TerminalWritable; - // @override (undocumented) + // (undocumented) protected onClose(): void; readonly preventDestinationAutoclose: boolean; } diff --git a/common/reviews/api/ts-command-line.api.md b/common/reviews/api/ts-command-line.api.md index d0288e7b7df..e7534624832 100644 --- a/common/reviews/api/ts-command-line.api.md +++ b/common/reviews/api/ts-command-line.api.md @@ -38,7 +38,6 @@ export class CommandLineChoiceListParameter ext // @internal constructor(definition: ICommandLineChoiceListDefinition); readonly alternatives: ReadonlySet; - // @override appendToArgList(argList: string[]): void; readonly completions: (() => Promise | ReadonlySet>) | undefined; readonly kind: CommandLineParameterKind.ChoiceList; @@ -52,7 +51,6 @@ export class CommandLineChoiceParameter extends // @internal constructor(definition: ICommandLineChoiceDefinition); readonly alternatives: ReadonlySet; - // @override appendToArgList(argList: string[]): void; readonly completions: (() => Promise | ReadonlySet>) | undefined; readonly defaultValue: TChoice | undefined; @@ -73,7 +71,6 @@ export enum CommandLineConstants { export class CommandLineFlagParameter extends CommandLineParameterBase { // @internal constructor(definition: ICommandLineFlagDefinition); - // @override appendToArgList(argList: string[]): void; readonly kind: CommandLineParameterKind.Flag; // @internal @@ -90,7 +87,6 @@ export class CommandLineHelper { export class CommandLineIntegerListParameter extends CommandLineParameterWithArgument { // @internal constructor(definition: ICommandLineIntegerListDefinition); - // @override appendToArgList(argList: string[]): void; readonly kind: CommandLineParameterKind.IntegerList; // @internal @@ -102,7 +98,6 @@ export class CommandLineIntegerListParameter extends CommandLineParameterWithArg export class CommandLineIntegerParameter extends CommandLineParameterWithArgument { // @internal constructor(definition: ICommandLineIntegerDefinition); - // @override appendToArgList(argList: string[]): void; readonly defaultValue: number | undefined; // @internal @@ -269,7 +264,6 @@ export class CommandLineParser extends CommandLineParameterProvider { export class CommandLineRemainder { // @internal constructor(definition: ICommandLineRemainderDefinition); - // @override appendToArgList(argList: string[]): void; readonly description: string; // @internal @@ -281,7 +275,6 @@ export class CommandLineRemainder { export class CommandLineStringListParameter extends CommandLineParameterWithArgument { // @internal constructor(definition: ICommandLineStringListDefinition); - // @override appendToArgList(argList: string[]): void; readonly kind: CommandLineParameterKind.StringList; // @internal @@ -293,7 +286,6 @@ export class CommandLineStringListParameter extends CommandLineParameterWithArgu export class CommandLineStringParameter extends CommandLineParameterWithArgument { // @internal constructor(definition: ICommandLineStringDefinition); - // @override appendToArgList(argList: string[]): void; readonly defaultValue: string | undefined; // @internal diff --git a/heft-plugins/heft-jest-plugin/src/JestPlugin.ts b/heft-plugins/heft-jest-plugin/src/JestPlugin.ts index f33e55079d5..66cedc19f9d 100644 --- a/heft-plugins/heft-jest-plugin/src/JestPlugin.ts +++ b/heft-plugins/heft-jest-plugin/src/JestPlugin.ts @@ -166,8 +166,6 @@ export default class JestPlugin implements IHeftTaskPlugin { /** * Setup the hooks and custom CLI options for the Jest plugin. - * - * @override */ public apply( taskSession: IHeftTaskSession, diff --git a/libraries/api-extractor-model/src/items/ApiDeclaredItem.ts b/libraries/api-extractor-model/src/items/ApiDeclaredItem.ts index 75d4e279f62..aa4fba36e63 100644 --- a/libraries/api-extractor-model/src/items/ApiDeclaredItem.ts +++ b/libraries/api-extractor-model/src/items/ApiDeclaredItem.ts @@ -60,8 +60,7 @@ export class ApiDeclaredItem extends ApiDocumentedItem { this._fileUrlPath = options.fileUrlPath; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiDeclaredItemJson @@ -135,8 +134,7 @@ export class ApiDeclaredItem extends ApiDocumentedItem { return excerpt; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.excerptTokens = this.excerptTokens.map((x) => { const excerptToken: IExcerptToken = { kind: x.kind, text: x.text }; diff --git a/libraries/api-extractor-model/src/items/ApiDocumentedItem.ts b/libraries/api-extractor-model/src/items/ApiDocumentedItem.ts index 126c0983afe..3fdce63f3a7 100644 --- a/libraries/api-extractor-model/src/items/ApiDocumentedItem.ts +++ b/libraries/api-extractor-model/src/items/ApiDocumentedItem.ts @@ -36,8 +36,7 @@ export class ApiDocumentedItem extends ApiItem { this._tsdocComment = options.docComment; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiItemJson @@ -63,8 +62,7 @@ export class ApiDocumentedItem extends ApiItem { return this._tsdocComment; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); if (this.tsdocComment !== undefined) { jsonObject.docComment = this.tsdocComment.emitAsTsdoc(); diff --git a/libraries/api-extractor-model/src/items/ApiPropertyItem.ts b/libraries/api-extractor-model/src/items/ApiPropertyItem.ts index fbe7d94aaea..0fcf373bc65 100644 --- a/libraries/api-extractor-model/src/items/ApiPropertyItem.ts +++ b/libraries/api-extractor-model/src/items/ApiPropertyItem.ts @@ -45,8 +45,7 @@ export class ApiPropertyItem extends ApiNameMixin( this.propertyTypeExcerpt = this.buildExcerpt(options.propertyTypeTokenRange); } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiPropertyItemJson @@ -73,8 +72,7 @@ export class ApiPropertyItem extends ApiNameMixin( return false; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.propertyTypeTokenRange = this.propertyTypeExcerpt.tokenRange; diff --git a/libraries/api-extractor-model/src/mixins/ApiAbstractMixin.ts b/libraries/api-extractor-model/src/mixins/ApiAbstractMixin.ts index 6c6ef04191c..65490537d9e 100644 --- a/libraries/api-extractor-model/src/mixins/ApiAbstractMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiAbstractMixin.ts @@ -69,8 +69,7 @@ export function ApiAbstractMixin( this[_isAbstract] = options.isAbstract; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiAbstractMixinJson @@ -84,8 +83,7 @@ export function ApiAbstractMixin( return this[_isAbstract]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.isAbstract = this.isAbstract; diff --git a/libraries/api-extractor-model/src/mixins/ApiExportedMixin.ts b/libraries/api-extractor-model/src/mixins/ApiExportedMixin.ts index 13909545473..a91360a6b87 100644 --- a/libraries/api-extractor-model/src/mixins/ApiExportedMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiExportedMixin.ts @@ -67,7 +67,6 @@ export interface ApiExportedMixin extends ApiItem { */ readonly isExported: boolean; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -94,8 +93,7 @@ export function ApiExportedMixin( this[_isExported] = options.isExported; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiExportedMixinJson @@ -115,9 +113,8 @@ export function ApiExportedMixin( /** * The `isExported` property is intentionally not serialized because the information is already present * in the item's `canonicalReference`. - * @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); } } diff --git a/libraries/api-extractor-model/src/mixins/ApiInitializerMixin.ts b/libraries/api-extractor-model/src/mixins/ApiInitializerMixin.ts index ff25a29b020..fc3bfe876b8 100644 --- a/libraries/api-extractor-model/src/mixins/ApiInitializerMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiInitializerMixin.ts @@ -46,7 +46,6 @@ export interface ApiInitializerMixin extends ApiItem { */ readonly initializerExcerpt?: Excerpt; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -82,8 +81,7 @@ export function ApiInitializerMixin( } } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiInitializerMixinJson @@ -97,8 +95,7 @@ export function ApiInitializerMixin( return this[_initializerExcerpt]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); // Note that JSON does not support the "undefined" value, so we simply omit the field entirely if it is undefined diff --git a/libraries/api-extractor-model/src/mixins/ApiItemContainerMixin.ts b/libraries/api-extractor-model/src/mixins/ApiItemContainerMixin.ts index fa6adee67c8..99cde2f3da6 100644 --- a/libraries/api-extractor-model/src/mixins/ApiItemContainerMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiItemContainerMixin.ts @@ -174,7 +174,6 @@ export interface ApiItemContainerMixin extends ApiItem { */ _getMergedSiblingsForMember(memberApiItem: ApiItem): ReadonlyArray; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -221,8 +220,7 @@ export function ApiItemContainerMixin( } } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiItemContainerJson @@ -235,8 +233,7 @@ export function ApiItemContainerMixin( } } - /** @override */ - public get members(): ReadonlyArray { + public override get members(): ReadonlyArray { if (!this[_membersSorted] && !this[_preserveMemberOrder]) { this[_members].sort((x, y) => x.getSortKey().localeCompare(y.getSortKey())); this[_membersSorted] = true; @@ -509,8 +506,7 @@ export function ApiItemContainerMixin( } } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); const memberObjects: IApiItemJson[] = []; diff --git a/libraries/api-extractor-model/src/mixins/ApiNameMixin.ts b/libraries/api-extractor-model/src/mixins/ApiNameMixin.ts index 6066839f111..61c6c33ab3d 100644 --- a/libraries/api-extractor-model/src/mixins/ApiNameMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiNameMixin.ts @@ -46,7 +46,6 @@ export interface ApiNameMixin extends ApiItem { */ readonly name: string; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -73,8 +72,7 @@ export function ApiNameMixin( this[_name] = options.name; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiNameMixinJson @@ -88,13 +86,11 @@ export function ApiNameMixin( return this[_name]; } - /** @override */ - public get displayName(): string { + public override get displayName(): string { return this[_name]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.name = this.name; diff --git a/libraries/api-extractor-model/src/mixins/ApiOptionalMixin.ts b/libraries/api-extractor-model/src/mixins/ApiOptionalMixin.ts index 63e0bbd445d..e74f9d884e1 100644 --- a/libraries/api-extractor-model/src/mixins/ApiOptionalMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiOptionalMixin.ts @@ -51,7 +51,6 @@ export interface ApiOptionalMixin extends ApiItem { */ readonly isOptional: boolean; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -78,8 +77,7 @@ export function ApiOptionalMixin( this[_isOptional] = !!options.isOptional; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiOptionalMixinJson @@ -93,8 +91,7 @@ export function ApiOptionalMixin( return this[_isOptional]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.isOptional = this.isOptional; diff --git a/libraries/api-extractor-model/src/mixins/ApiParameterListMixin.ts b/libraries/api-extractor-model/src/mixins/ApiParameterListMixin.ts index 29d82f81bc1..49e651eb792 100644 --- a/libraries/api-extractor-model/src/mixins/ApiParameterListMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiParameterListMixin.ts @@ -136,8 +136,7 @@ export function ApiParameterListMixin( } } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiParameterListJson @@ -156,8 +155,7 @@ export function ApiParameterListMixin( return this[_parameters]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.overloadIndex = this.overloadIndex; diff --git a/libraries/api-extractor-model/src/mixins/ApiProtectedMixin.ts b/libraries/api-extractor-model/src/mixins/ApiProtectedMixin.ts index c187a68acbe..598529784aa 100644 --- a/libraries/api-extractor-model/src/mixins/ApiProtectedMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiProtectedMixin.ts @@ -42,7 +42,6 @@ export interface ApiProtectedMixin extends ApiItem { */ readonly isProtected: boolean; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -69,8 +68,7 @@ export function ApiProtectedMixin( this[_isProtected] = options.isProtected; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiProtectedMixinJson @@ -84,8 +82,7 @@ export function ApiProtectedMixin( return this[_isProtected]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.isProtected = this.isProtected; diff --git a/libraries/api-extractor-model/src/mixins/ApiReadonlyMixin.ts b/libraries/api-extractor-model/src/mixins/ApiReadonlyMixin.ts index 90d8aeac2b1..859a3ffcd82 100644 --- a/libraries/api-extractor-model/src/mixins/ApiReadonlyMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiReadonlyMixin.ts @@ -91,8 +91,7 @@ export function ApiReadonlyMixin( this[_isReadonly] = options.isReadonly; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiReadonlyMixinJson @@ -106,8 +105,7 @@ export function ApiReadonlyMixin( return this[_isReadonly]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.isReadonly = this.isReadonly; diff --git a/libraries/api-extractor-model/src/mixins/ApiReleaseTagMixin.ts b/libraries/api-extractor-model/src/mixins/ApiReleaseTagMixin.ts index f00b92a1681..3865f6579cd 100644 --- a/libraries/api-extractor-model/src/mixins/ApiReleaseTagMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiReleaseTagMixin.ts @@ -50,7 +50,6 @@ export interface ApiReleaseTagMixin extends ApiItem { */ readonly releaseTag: ReleaseTag; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -77,8 +76,7 @@ export function ApiReleaseTagMixin( this[_releaseTag] = options.releaseTag; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiReleaseTagMixinJson @@ -100,8 +98,7 @@ export function ApiReleaseTagMixin( return this[_releaseTag]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.releaseTag = ReleaseTag[this.releaseTag]; diff --git a/libraries/api-extractor-model/src/mixins/ApiReturnTypeMixin.ts b/libraries/api-extractor-model/src/mixins/ApiReturnTypeMixin.ts index 754305ad1e1..493b8e0bfbe 100644 --- a/libraries/api-extractor-model/src/mixins/ApiReturnTypeMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiReturnTypeMixin.ts @@ -46,7 +46,6 @@ export interface ApiReturnTypeMixin extends ApiItem { */ readonly returnTypeExcerpt: Excerpt; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -78,8 +77,7 @@ export function ApiReturnTypeMixin( } } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiReturnTypeMixinJson @@ -93,8 +91,7 @@ export function ApiReturnTypeMixin( return this[_returnTypeExcerpt]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.returnTypeTokenRange = this.returnTypeExcerpt.tokenRange; diff --git a/libraries/api-extractor-model/src/mixins/ApiStaticMixin.ts b/libraries/api-extractor-model/src/mixins/ApiStaticMixin.ts index 05ad206d8b7..cb57f6c0542 100644 --- a/libraries/api-extractor-model/src/mixins/ApiStaticMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiStaticMixin.ts @@ -42,7 +42,6 @@ export interface ApiStaticMixin extends ApiItem { */ readonly isStatic: boolean; - /** @override */ serializeInto(jsonObject: Partial): void; } @@ -69,8 +68,7 @@ export function ApiStaticMixin( this[_isStatic] = options.isStatic; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiStaticMixinJson @@ -84,8 +82,7 @@ export function ApiStaticMixin( return this[_isStatic]; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.isStatic = this.isStatic; diff --git a/libraries/api-extractor-model/src/mixins/ApiTypeParameterListMixin.ts b/libraries/api-extractor-model/src/mixins/ApiTypeParameterListMixin.ts index 9af4943bb6e..9d938598af1 100644 --- a/libraries/api-extractor-model/src/mixins/ApiTypeParameterListMixin.ts +++ b/libraries/api-extractor-model/src/mixins/ApiTypeParameterListMixin.ts @@ -106,8 +106,7 @@ export function ApiTypeParameterListMixin, context: DeserializerContext, jsonObject: IApiTypeParameterListMixinJson @@ -121,8 +120,7 @@ export function ApiTypeParameterListMixin): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); const typeParameterObjects: IApiTypeParameterOptions[] = []; diff --git a/libraries/api-extractor-model/src/model/ApiCallSignature.ts b/libraries/api-extractor-model/src/model/ApiCallSignature.ts index 738fdec23fe..565cf8530a0 100644 --- a/libraries/api-extractor-model/src/model/ApiCallSignature.ts +++ b/libraries/api-extractor-model/src/model/ApiCallSignature.ts @@ -68,18 +68,16 @@ export class ApiCallSignature extends ApiTypeParameterListMixin( return `|${ApiItemKind.CallSignature}|${overloadIndex}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.CallSignature; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiCallSignature.getContainerKey(this.overloadIndex); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const parent: DeclarationReference = this.parent ? this.parent.canonicalReference : // .withMeaning() requires some kind of component diff --git a/libraries/api-extractor-model/src/model/ApiClass.ts b/libraries/api-extractor-model/src/model/ApiClass.ts index 90ea079f0f4..8b260e7d052 100644 --- a/libraries/api-extractor-model/src/model/ApiClass.ts +++ b/libraries/api-extractor-model/src/model/ApiClass.ts @@ -107,8 +107,7 @@ export class ApiClass extends ApiItemContainerMixin( return `${name}|${ApiItemKind.Class}`; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiClassJson @@ -119,13 +118,11 @@ export class ApiClass extends ApiItemContainerMixin( options.implementsTokenRanges = jsonObject.implementsTokenRanges; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Class; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiClass.getContainerKey(this.name); } @@ -136,8 +133,7 @@ export class ApiClass extends ApiItemContainerMixin( return this._implementsTypes; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); // Note that JSON does not support the "undefined" value, so we simply omit the field entirely if it is undefined @@ -148,8 +144,8 @@ export class ApiClass extends ApiItemContainerMixin( jsonObject.implementsTokenRanges = this.implementsTypes.map((x) => x.excerpt.tokenRange); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); const navigation: Navigation = this.isExported ? Navigation.Exports : Navigation.Locals; return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) diff --git a/libraries/api-extractor-model/src/model/ApiConstructSignature.ts b/libraries/api-extractor-model/src/model/ApiConstructSignature.ts index 707b155ef5f..6d432a9830f 100644 --- a/libraries/api-extractor-model/src/model/ApiConstructSignature.ts +++ b/libraries/api-extractor-model/src/model/ApiConstructSignature.ts @@ -81,18 +81,16 @@ export class ApiConstructSignature extends ApiTypeParameterListMixin( return `|${ApiItemKind.ConstructSignature}|${overloadIndex}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.ConstructSignature; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiConstructSignature.getContainerKey(this.overloadIndex); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const parent: DeclarationReference = this.parent ? this.parent.canonicalReference : // .withMeaning() requires some kind of component diff --git a/libraries/api-extractor-model/src/model/ApiConstructor.ts b/libraries/api-extractor-model/src/model/ApiConstructor.ts index 2ff037a9329..2c03fcf8470 100644 --- a/libraries/api-extractor-model/src/model/ApiConstructor.ts +++ b/libraries/api-extractor-model/src/model/ApiConstructor.ts @@ -61,18 +61,16 @@ export class ApiConstructor extends ApiParameterListMixin( return `|${ApiItemKind.Constructor}|${overloadIndex}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Constructor; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiConstructor.getContainerKey(this.overloadIndex); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const parent: DeclarationReference = this.parent ? this.parent.canonicalReference : // .withMeaning() requires some kind of component diff --git a/libraries/api-extractor-model/src/model/ApiEntryPoint.ts b/libraries/api-extractor-model/src/model/ApiEntryPoint.ts index 4d03a35fdd5..4e70d282a64 100644 --- a/libraries/api-extractor-model/src/model/ApiEntryPoint.ts +++ b/libraries/api-extractor-model/src/model/ApiEntryPoint.ts @@ -46,13 +46,11 @@ export class ApiEntryPoint extends ApiItemContainerMixin(ApiNameMixin(ApiItem)) super(options); } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.EntryPoint; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { // No prefix needed, because ApiEntryPoint is the only possible member of an ApiPackage return this.name; } @@ -73,8 +71,8 @@ export class ApiEntryPoint extends ApiItemContainerMixin(ApiNameMixin(ApiItem)) return this.name; } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { if (this.parent instanceof ApiPackage) { return DeclarationReference.package(this.parent.name, this.importPath); } diff --git a/libraries/api-extractor-model/src/model/ApiEnum.ts b/libraries/api-extractor-model/src/model/ApiEnum.ts index 23528c219bd..923c1869463 100644 --- a/libraries/api-extractor-model/src/model/ApiEnum.ts +++ b/libraries/api-extractor-model/src/model/ApiEnum.ts @@ -58,31 +58,27 @@ export class ApiEnum extends ApiItemContainerMixin( return `${name}|${ApiItemKind.Enum}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Enum; } - /** @override */ - public get members(): ReadonlyArray { + public override get members(): ReadonlyArray { return super.members as ReadonlyArray; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiEnum.getContainerKey(this.name); } - /** @override */ - public addMember(member: ApiEnumMember): void { + public override addMember(member: ApiEnumMember): void { if (member.kind !== ApiItemKind.EnumMember) { throw new Error('Only ApiEnumMember objects can be added to an ApiEnum'); } super.addMember(member); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); const navigation: Navigation = this.isExported ? Navigation.Exports : Navigation.Locals; return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) diff --git a/libraries/api-extractor-model/src/model/ApiEnumMember.ts b/libraries/api-extractor-model/src/model/ApiEnumMember.ts index 2c95578cf47..a57f5b2d1d3 100644 --- a/libraries/api-extractor-model/src/model/ApiEnumMember.ts +++ b/libraries/api-extractor-model/src/model/ApiEnumMember.ts @@ -82,18 +82,16 @@ export class ApiEnumMember extends ApiNameMixin(ApiReleaseTagMixin(ApiInitialize return name; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.EnumMember; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiEnumMember.getContainerKey(this.name); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) .addNavigationStep(Navigation.Exports, nameComponent) diff --git a/libraries/api-extractor-model/src/model/ApiFunction.ts b/libraries/api-extractor-model/src/model/ApiFunction.ts index 39a10cacdab..413522360ea 100644 --- a/libraries/api-extractor-model/src/model/ApiFunction.ts +++ b/libraries/api-extractor-model/src/model/ApiFunction.ts @@ -67,18 +67,16 @@ export class ApiFunction extends ApiNameMixin( return `${name}|${ApiItemKind.Function}|${overloadIndex}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Function; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiFunction.getContainerKey(this.name, this.overloadIndex); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); const navigation: Navigation = this.isExported ? Navigation.Exports : Navigation.Locals; return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) diff --git a/libraries/api-extractor-model/src/model/ApiIndexSignature.ts b/libraries/api-extractor-model/src/model/ApiIndexSignature.ts index 4a2d2f9092a..dbae05672fb 100644 --- a/libraries/api-extractor-model/src/model/ApiIndexSignature.ts +++ b/libraries/api-extractor-model/src/model/ApiIndexSignature.ts @@ -58,18 +58,16 @@ export class ApiIndexSignature extends ApiParameterListMixin( return `|${ApiItemKind.IndexSignature}|${overloadIndex}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.IndexSignature; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiIndexSignature.getContainerKey(this.overloadIndex); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const parent: DeclarationReference = this.parent ? this.parent.canonicalReference : // .withMeaning() requires some kind of component diff --git a/libraries/api-extractor-model/src/model/ApiInterface.ts b/libraries/api-extractor-model/src/model/ApiInterface.ts index aa8cdd7083d..d327c00e3d8 100644 --- a/libraries/api-extractor-model/src/model/ApiInterface.ts +++ b/libraries/api-extractor-model/src/model/ApiInterface.ts @@ -97,8 +97,7 @@ export class ApiInterface extends ApiItemContainerMixin( return `${name}|${ApiItemKind.Interface}`; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiInterfaceJson @@ -108,13 +107,11 @@ export class ApiInterface extends ApiItemContainerMixin( options.extendsTokenRanges = jsonObject.extendsTokenRanges; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Interface; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiInterface.getContainerKey(this.name); } @@ -125,15 +122,14 @@ export class ApiInterface extends ApiItemContainerMixin( return this._extendsTypes; } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.extendsTokenRanges = this.extendsTypes.map((x) => x.excerpt.tokenRange); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); const navigation: Navigation = this.isExported ? Navigation.Exports : Navigation.Locals; return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) diff --git a/libraries/api-extractor-model/src/model/ApiMethod.ts b/libraries/api-extractor-model/src/model/ApiMethod.ts index 88816d09389..3937330fb8c 100644 --- a/libraries/api-extractor-model/src/model/ApiMethod.ts +++ b/libraries/api-extractor-model/src/model/ApiMethod.ts @@ -83,18 +83,16 @@ export class ApiMethod extends ApiNameMixin( } } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Method; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiMethod.getContainerKey(this.name, this.isStatic, this.overloadIndex); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) .addNavigationStep(this.isStatic ? Navigation.Exports : Navigation.Members, nameComponent) diff --git a/libraries/api-extractor-model/src/model/ApiMethodSignature.ts b/libraries/api-extractor-model/src/model/ApiMethodSignature.ts index b69d9649a4e..4c31cf1d041 100644 --- a/libraries/api-extractor-model/src/model/ApiMethodSignature.ts +++ b/libraries/api-extractor-model/src/model/ApiMethodSignature.ts @@ -64,18 +64,16 @@ export class ApiMethodSignature extends ApiNameMixin( return `${name}|${ApiItemKind.MethodSignature}|${overloadIndex}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.MethodSignature; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiMethodSignature.getContainerKey(this.name, this.overloadIndex); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) .addNavigationStep(Navigation.Members, nameComponent) diff --git a/libraries/api-extractor-model/src/model/ApiModel.ts b/libraries/api-extractor-model/src/model/ApiModel.ts index ef60535ffb5..2e7da02319a 100644 --- a/libraries/api-extractor-model/src/model/ApiModel.ts +++ b/libraries/api-extractor-model/src/model/ApiModel.ts @@ -67,13 +67,11 @@ export class ApiModel extends ApiItemContainerMixin(ApiItem) { return apiPackage; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Model; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ''; } @@ -81,8 +79,7 @@ export class ApiModel extends ApiItemContainerMixin(ApiItem) { return this.members as ReadonlyArray; } - /** @override */ - public addMember(member: ApiPackage): void { + public override addMember(member: ApiPackage): void { if (member.kind !== ApiItemKind.Package) { throw new Error('Only items of type ApiPackage may be added to an ApiModel'); } @@ -194,8 +191,8 @@ export class ApiModel extends ApiItemContainerMixin(ApiItem) { } } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { return DeclarationReference.empty(); } } diff --git a/libraries/api-extractor-model/src/model/ApiNamespace.ts b/libraries/api-extractor-model/src/model/ApiNamespace.ts index 22cb9545cd1..81ce412c7e3 100644 --- a/libraries/api-extractor-model/src/model/ApiNamespace.ts +++ b/libraries/api-extractor-model/src/model/ApiNamespace.ts @@ -59,18 +59,16 @@ export class ApiNamespace extends ApiItemContainerMixin( return `${name}|${ApiItemKind.Namespace}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Namespace; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiNamespace.getContainerKey(this.name); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); const navigation: Navigation = this.isExported ? Navigation.Exports : Navigation.Locals; return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) diff --git a/libraries/api-extractor-model/src/model/ApiPackage.ts b/libraries/api-extractor-model/src/model/ApiPackage.ts index 0a28b932933..aa9dc373cd6 100644 --- a/libraries/api-extractor-model/src/model/ApiPackage.ts +++ b/libraries/api-extractor-model/src/model/ApiPackage.ts @@ -140,8 +140,7 @@ export class ApiPackage extends ApiItemContainerMixin(ApiNameMixin(ApiDocumented this._projectFolderUrl = options.projectFolderUrl; } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiPackageJson @@ -223,13 +222,11 @@ export class ApiPackage extends ApiItemContainerMixin(ApiNameMixin(ApiDocumented return ApiItem.deserialize(jsonObject, context) as ApiPackage; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Package; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { // No prefix needed, because ApiPackage is the only possible member of an ApiModel return this.name; } @@ -254,8 +251,7 @@ export class ApiPackage extends ApiItemContainerMixin(ApiNameMixin(ApiDocumented return this._projectFolderUrl; } - /** @override */ - public addMember(member: ApiEntryPoint): void { + public override addMember(member: ApiEntryPoint): void { if (member.kind !== ApiItemKind.EntryPoint) { throw new Error('Only items of type ApiEntryPoint may be added to an ApiPackage'); } @@ -296,8 +292,8 @@ export class ApiPackage extends ApiItemContainerMixin(ApiNameMixin(ApiDocumented JsonFile.save(jsonObject, apiJsonFilename, options); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { return DeclarationReference.package(this.name); } } diff --git a/libraries/api-extractor-model/src/model/ApiProperty.ts b/libraries/api-extractor-model/src/model/ApiProperty.ts index e7a46f8ed4f..e113cb05e08 100644 --- a/libraries/api-extractor-model/src/model/ApiProperty.ts +++ b/libraries/api-extractor-model/src/model/ApiProperty.ts @@ -75,18 +75,16 @@ export class ApiProperty extends ApiAbstractMixin( } } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Property; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiProperty.getContainerKey(this.name, this.isStatic); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) .addNavigationStep(this.isStatic ? Navigation.Exports : Navigation.Members, nameComponent) diff --git a/libraries/api-extractor-model/src/model/ApiPropertySignature.ts b/libraries/api-extractor-model/src/model/ApiPropertySignature.ts index 490b19b2ae9..47d82884337 100644 --- a/libraries/api-extractor-model/src/model/ApiPropertySignature.ts +++ b/libraries/api-extractor-model/src/model/ApiPropertySignature.ts @@ -48,18 +48,16 @@ export class ApiPropertySignature extends ApiPropertyItem { return `${name}|${ApiItemKind.PropertySignature}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.PropertySignature; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiPropertySignature.getContainerKey(this.name); } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) .addNavigationStep(Navigation.Members, nameComponent) diff --git a/libraries/api-extractor-model/src/model/ApiTypeAlias.ts b/libraries/api-extractor-model/src/model/ApiTypeAlias.ts index db46b4e6740..511d2bc0266 100644 --- a/libraries/api-extractor-model/src/model/ApiTypeAlias.ts +++ b/libraries/api-extractor-model/src/model/ApiTypeAlias.ts @@ -97,8 +97,7 @@ export class ApiTypeAlias extends ApiTypeParameterListMixin( this.typeExcerpt = this.buildExcerpt(options.typeTokenRange); } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiTypeAliasJson @@ -112,25 +111,22 @@ export class ApiTypeAlias extends ApiTypeParameterListMixin( return `${name}|${ApiItemKind.TypeAlias}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.TypeAlias; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiTypeAlias.getContainerKey(this.name); } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.typeTokenRange = this.typeExcerpt.tokenRange; } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); const navigation: Navigation = this.isExported ? Navigation.Exports : Navigation.Locals; return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) diff --git a/libraries/api-extractor-model/src/model/ApiVariable.ts b/libraries/api-extractor-model/src/model/ApiVariable.ts index d49c3ea738f..a12369080e9 100644 --- a/libraries/api-extractor-model/src/model/ApiVariable.ts +++ b/libraries/api-extractor-model/src/model/ApiVariable.ts @@ -78,8 +78,7 @@ export class ApiVariable extends ApiNameMixin( this.variableTypeExcerpt = this.buildExcerpt(options.variableTypeTokenRange); } - /** @override */ - public static onDeserializeInto( + public static override onDeserializeInto( options: Partial, context: DeserializerContext, jsonObject: IApiVariableJson @@ -93,25 +92,22 @@ export class ApiVariable extends ApiNameMixin( return `${name}|${ApiItemKind.Variable}`; } - /** @override */ - public get kind(): ApiItemKind { + public override get kind(): ApiItemKind { return ApiItemKind.Variable; } - /** @override */ - public get containerKey(): string { + public override get containerKey(): string { return ApiVariable.getContainerKey(this.name); } - /** @override */ - public serializeInto(jsonObject: Partial): void { + public override serializeInto(jsonObject: Partial): void { super.serializeInto(jsonObject); jsonObject.variableTypeTokenRange = this.variableTypeExcerpt.tokenRange; } - /** @beta @override */ - public buildCanonicalReference(): DeclarationReference { + /** @beta */ + public override buildCanonicalReference(): DeclarationReference { const nameComponent: Component = DeclarationReference.parseComponent(this.name); const navigation: Navigation = this.isExported ? Navigation.Exports : Navigation.Locals; return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty()) diff --git a/libraries/node-core-library/src/FileError.ts b/libraries/node-core-library/src/FileError.ts index 32fac1b5742..3b25396c672 100644 --- a/libraries/node-core-library/src/FileError.ts +++ b/libraries/node-core-library/src/FileError.ts @@ -126,10 +126,8 @@ export class FileError extends Error { /** * Get the Unix-formatted the error message. - * - * @override */ - public toString(): string { + public override toString(): string { // Default to formatting in 'Unix' format, for consistency. return this.getFormattedErrorMessage(); } diff --git a/libraries/node-core-library/src/InternalError.ts b/libraries/node-core-library/src/InternalError.ts index 8fb67df1979..26b5b2b1e74 100644 --- a/libraries/node-core-library/src/InternalError.ts +++ b/libraries/node-core-library/src/InternalError.ts @@ -57,8 +57,7 @@ export class InternalError extends Error { ); } - /** @override */ - public toString(): string { + public override toString(): string { return this.message; // Avoid adding the "Error:" prefix } } diff --git a/libraries/rush-lib/src/logic/installManager/RushInstallManager.ts b/libraries/rush-lib/src/logic/installManager/RushInstallManager.ts index 0aa8d858357..c8fa3a23f28 100644 --- a/libraries/rush-lib/src/logic/installManager/RushInstallManager.ts +++ b/libraries/rush-lib/src/logic/installManager/RushInstallManager.ts @@ -81,10 +81,8 @@ export class RushInstallManager extends BaseInstallManager { * If shrinkwrapFile is provided, this function also validates whether it contains * everything we need to install and returns true if so; in all other cases, * the return value is false. - * - * @override */ - public async prepareCommonTempAsync( + public override async prepareCommonTempAsync( subspace: Subspace, shrinkwrapFile: BaseShrinkwrapFile | undefined ): Promise<{ shrinkwrapIsUpToDate: boolean; shrinkwrapWarnings: string[] }> { @@ -448,10 +446,8 @@ export class RushInstallManager extends BaseInstallManager { /** * Check whether or not the install is already valid, and therefore can be skipped. - * - * @override */ - protected async canSkipInstallAsync( + protected override async canSkipInstallAsync( lastModifiedDate: Date, subspace: Subspace, variant: string | undefined @@ -476,10 +472,8 @@ export class RushInstallManager extends BaseInstallManager { /** * Runs "npm/pnpm/yarn install" in the "common/temp" folder. - * - * @override */ - protected async installAsync(cleanInstall: boolean, subspace: Subspace): Promise { + protected override async installAsync(cleanInstall: boolean, subspace: Subspace): Promise { // Since we are actually running npm/pnpm/yarn install, recreate all the temp project tarballs. // This ensures that any existing tarballs with older header bits will be regenerated. // It is safe to assume that temp project pacakge.jsons already exist. diff --git a/libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts b/libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts index 60ce094f28a..da941a9ffd7 100644 --- a/libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts +++ b/libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts @@ -53,10 +53,7 @@ export interface IPnpmModules { * This class implements common logic between "rush install" and "rush update". */ export class WorkspaceInstallManager extends BaseInstallManager { - /** - * @override - */ - public async doInstallAsync(): Promise { + public override async doInstallAsync(): Promise { // TODO: Remove when "rush link" and "rush unlink" are deprecated if (this.options.noLink) { // eslint-disable-next-line no-console @@ -77,10 +74,8 @@ export class WorkspaceInstallManager extends BaseInstallManager { * If shrinkwrapFile is provided, this function also validates whether it contains * everything we need to install and returns true if so; in all other cases, * the return value is false. - * - * @override */ - protected async prepareCommonTempAsync( + protected override async prepareCommonTempAsync( subspace: Subspace, shrinkwrapFile: (PnpmShrinkwrapFile & BaseShrinkwrapFile) | undefined ): Promise<{ shrinkwrapIsUpToDate: boolean; shrinkwrapWarnings: string[] }> { @@ -132,6 +127,7 @@ export class WorkspaceInstallManager extends BaseInstallManager { `which was not found in ${RushConstants.rushJsonFilename}` ); } + shrinkwrapIsUpToDate = false; } } diff --git a/libraries/rush-lib/src/logic/npm/NpmShrinkwrapFile.ts b/libraries/rush-lib/src/logic/npm/NpmShrinkwrapFile.ts index f0dfe9c70d1..b0880d98b7b 100644 --- a/libraries/rush-lib/src/logic/npm/NpmShrinkwrapFile.ts +++ b/libraries/rush-lib/src/logic/npm/NpmShrinkwrapFile.ts @@ -67,18 +67,15 @@ export class NpmShrinkwrapFile extends BaseShrinkwrapFile { return new NpmShrinkwrapFile(JSON.parse(data)); } - /** @override */ - public getTempProjectNames(): ReadonlyArray { + public override getTempProjectNames(): ReadonlyArray { return this._getTempProjectNames(this._shrinkwrapJson.dependencies); } - /** @override */ - protected serialize(): string { + protected override serialize(): string { return JsonFile.stringify(this._shrinkwrapJson); } - /** @override */ - protected getTopLevelDependencyVersion(dependencyName: string): DependencySpecifier | undefined { + protected override getTopLevelDependencyVersion(dependencyName: string): DependencySpecifier | undefined { // First, check under tempProjectName, as this is the first place we look during linking. const dependencyJson: INpmShrinkwrapDependencyJson | undefined = NpmShrinkwrapFile.tryGetValue( this._shrinkwrapJson.dependencies, @@ -96,9 +93,8 @@ export class NpmShrinkwrapFile extends BaseShrinkwrapFile { * @param dependencyName the name of the dependency to get a version for * @param tempProjectName the name of the temp project to check for this dependency * @param versionRange Not used, just exists to satisfy abstract API contract - * @override */ - protected tryEnsureDependencyVersion( + protected override tryEnsureDependencyVersion( dependencySpecifier: DependencySpecifier, tempProjectName: string ): DependencySpecifier | undefined { @@ -124,15 +120,13 @@ export class NpmShrinkwrapFile extends BaseShrinkwrapFile { return DependencySpecifier.parseWithCache(dependencySpecifier.packageName, dependencyJson.version); } - /** @override */ - public getProjectShrinkwrap( + public override getProjectShrinkwrap( project: RushConfigurationProject ): BaseProjectShrinkwrapFile | undefined { return undefined; } - /** @override */ - public async isWorkspaceProjectModifiedAsync( + public override async isWorkspaceProjectModifiedAsync( project: RushConfigurationProject, subspace: Subspace, variant: string | undefined diff --git a/libraries/rush-lib/src/logic/pnpm/PnpmLinkManager.ts b/libraries/rush-lib/src/logic/pnpm/PnpmLinkManager.ts index 4fc2bbb5c76..b020bea25af 100644 --- a/libraries/rush-lib/src/logic/pnpm/PnpmLinkManager.ts +++ b/libraries/rush-lib/src/logic/pnpm/PnpmLinkManager.ts @@ -39,10 +39,7 @@ export class PnpmLinkManager extends BaseLinkManager { this._rushConfiguration.packageManagerToolVersion ); - /** - * @override - */ - public async createSymlinksForProjectsAsync(force: boolean): Promise { + public override async createSymlinksForProjectsAsync(force: boolean): Promise { const useWorkspaces: boolean = this._rushConfiguration.pnpmOptions && this._rushConfiguration.pnpmOptions.useWorkspaces; if (useWorkspaces) { diff --git a/libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts b/libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts index dac0b78cda9..6e8efd42783 100644 --- a/libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts +++ b/libraries/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts @@ -507,8 +507,7 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { return false; } - /** @override */ - public validateShrinkwrapAfterUpdate( + public override validateShrinkwrapAfterUpdate( rushConfiguration: RushConfiguration, subspace: Subspace, terminal: ITerminal @@ -535,8 +534,7 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { } } - /** @override */ - public validate( + public override validate( packageManagerOptionsConfig: PackageManagerOptionsConfigurationBase, policyOptions: IShrinkwrapFilePolicyValidatorOptions, experimentsConfig?: IExperimentsJson @@ -631,8 +629,7 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { return this._getPackageId(name, version); } - /** @override */ - public getTempProjectNames(): ReadonlyArray { + public override getTempProjectNames(): ReadonlyArray { return this._getTempProjectNames(this._shrinkwrapJson.dependencies || {}); } @@ -657,10 +654,8 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { * '1.9.0-dev.27' * 'file:projects/empty-webpart-project.tgz' * undefined - * - * @override */ - public getTopLevelDependencyVersion(dependencyName: string): DependencySpecifier | undefined { + public override getTopLevelDependencyVersion(dependencyName: string): DependencySpecifier | undefined { let value: IPnpmVersionSpecifier | undefined = this.dependencies.get(dependencyName); if (value) { value = normalizePnpmVersionSpecifier(value); @@ -809,10 +804,8 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { /** * Serializes the PNPM Shrinkwrap file - * - * @override */ - protected serialize(): string { + protected override serialize(): string { return this._serializeInternal(false); } @@ -820,10 +813,8 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { * Gets the resolved version number of a dependency for a specific temp project. * For PNPM, we can reuse the version that another project is using. * Note that this function modifies the shrinkwrap data if tryReusingPackageVersionsFromShrinkwrap is set to true. - * - * @override */ - protected tryEnsureDependencyVersion( + protected override tryEnsureDependencyVersion( dependencySpecifier: DependencySpecifier, tempProjectName: string ): DependencySpecifier | undefined { @@ -856,8 +847,7 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { return this._parsePnpmDependencyKey(packageName, dependencyKey); } - /** @override */ - public findOrphanedProjects( + public override findOrphanedProjects( rushConfiguration: RushConfiguration, subspace: Subspace ): ReadonlyArray { @@ -881,8 +871,7 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { return orphanedProjectPaths; } - /** @override */ - public getProjectShrinkwrap(project: RushConfigurationProject): PnpmProjectShrinkwrapFile { + public override getProjectShrinkwrap(project: RushConfigurationProject): PnpmProjectShrinkwrapFile { return new PnpmProjectShrinkwrapFile(this, project); } @@ -948,8 +937,7 @@ export class PnpmShrinkwrapFile extends BaseShrinkwrapFile { return integrityMap; } - /** @override */ - public async isWorkspaceProjectModifiedAsync( + public override async isWorkspaceProjectModifiedAsync( project: RushConfigurationProject, subspace: Subspace, variant: string | undefined diff --git a/libraries/rush-lib/src/logic/yarn/YarnShrinkwrapFile.ts b/libraries/rush-lib/src/logic/yarn/YarnShrinkwrapFile.ts index cbf068a8d41..a3dcbfd27b0 100644 --- a/libraries/rush-lib/src/logic/yarn/YarnShrinkwrapFile.ts +++ b/libraries/rush-lib/src/logic/yarn/YarnShrinkwrapFile.ts @@ -233,13 +233,11 @@ export class YarnShrinkwrapFile extends BaseShrinkwrapFile { return packageNameAndSemVer.packageName + '@' + packageNameAndSemVer.semVerRange; } - /** @override */ - public getTempProjectNames(): ReadonlyArray { + public override getTempProjectNames(): ReadonlyArray { return this._tempProjectNames; } - /** @override */ - public hasCompatibleTopLevelDependency(dependencySpecifier: DependencySpecifier): boolean { + public override hasCompatibleTopLevelDependency(dependencySpecifier: DependencySpecifier): boolean { // It seems like we should normalize the key somehow, but Yarn apparently does not // do any normalization. const key: string = YarnShrinkwrapFile._encodePackageNameAndSemVer({ @@ -251,41 +249,35 @@ export class YarnShrinkwrapFile extends BaseShrinkwrapFile { return Object.hasOwnProperty.call(this._shrinkwrapJson, key); } - /** @override */ - public tryEnsureCompatibleDependency( + public override tryEnsureCompatibleDependency( dependencySpecifier: DependencySpecifier, tempProjectName: string ): boolean { return this.hasCompatibleTopLevelDependency(dependencySpecifier); } - /** @override */ - protected serialize(): string { + protected override serialize(): string { return lockfileModule.stringify(this._shrinkwrapJson); } - /** @override */ - protected getTopLevelDependencyVersion(dependencyName: string): DependencySpecifier | undefined { + protected override getTopLevelDependencyVersion(dependencyName: string): DependencySpecifier | undefined { throw new InternalError('Not implemented'); } - /** @override */ - protected tryEnsureDependencyVersion( + protected override tryEnsureDependencyVersion( dependencySpecifier: DependencySpecifier, tempProjectName: string ): DependencySpecifier | undefined { throw new InternalError('Not implemented'); } - /** @override */ - public getProjectShrinkwrap( + public override getProjectShrinkwrap( project: RushConfigurationProject ): BaseProjectShrinkwrapFile | undefined { return undefined; } - /** @override */ - public async isWorkspaceProjectModifiedAsync( + public override async isWorkspaceProjectModifiedAsync( project: RushConfigurationProject, subspace: Subspace ): Promise { diff --git a/libraries/rushell/src/AstNode.ts b/libraries/rushell/src/AstNode.ts index 570e2cbeb29..4ef0b382eff 100644 --- a/libraries/rushell/src/AstNode.ts +++ b/libraries/rushell/src/AstNode.ts @@ -82,8 +82,7 @@ export class AstScript extends AstBaseNode { public body: AstNode | undefined; - /** @override */ - protected collectChildNodesInto(nodes: AstNode[]): void { + protected override collectChildNodesInto(nodes: AstNode[]): void { if (this.body) { nodes.push(this.body); } @@ -106,8 +105,7 @@ export class AstAndIf extends AstBaseNode { */ public secondCommand: AstCommand | undefined; - /** @override */ - protected collectChildNodesInto(nodes: AstNode[]): void { + protected override collectChildNodesInto(nodes: AstNode[]): void { if (this.firstCommand) { nodes.push(this.firstCommand); } @@ -126,8 +124,7 @@ export class AstCommand extends AstBaseNode { public commandPath: AstCompoundWord | undefined; public arguments: AstCompoundWord[] = []; - /** @override */ - protected collectChildNodesInto(nodes: AstNode[]): void { + protected override collectChildNodesInto(nodes: AstNode[]): void { if (this.commandPath) { nodes.push(this.commandPath); } @@ -143,8 +140,7 @@ export class AstCompoundWord extends AstBaseNode { public readonly parts: AstNode[] = []; - /** @override */ - protected collectChildNodesInto(nodes: AstNode[]): void { + protected override collectChildNodesInto(nodes: AstNode[]): void { nodes.push(...this.parts); } } @@ -155,8 +151,7 @@ export class AstCompoundWord extends AstBaseNode { export class AstVariableExpansion extends AstBaseNode { public readonly kind: AstKind.VariableExpansion = AstKind.VariableExpansion; - /** @override */ - protected collectChildNodesInto(nodes: AstNode[]): void { + protected override collectChildNodesInto(nodes: AstNode[]): void { // no children } } @@ -169,13 +164,11 @@ export class AstText extends AstBaseNode { public token: Token | undefined; - /** @override */ - protected collectChildNodesInto(nodes: AstNode[]): void { + protected override collectChildNodesInto(nodes: AstNode[]): void { // no children } - /** @override */ - protected getDumpText(): string | undefined { + protected override getDumpText(): string | undefined { if (this.token) { return this.token.text; } diff --git a/libraries/terminal/src/PrefixProxyTerminalProvider.ts b/libraries/terminal/src/PrefixProxyTerminalProvider.ts index 94d4194b5e5..c33d247e285 100644 --- a/libraries/terminal/src/PrefixProxyTerminalProvider.ts +++ b/libraries/terminal/src/PrefixProxyTerminalProvider.ts @@ -77,17 +77,14 @@ export class PrefixProxyTerminalProvider implements ITerminalProvider { this._newlineRegex = new RegExp(`${Text.escapeRegExp(terminalProvider.eolCharacter)}|\\n`, 'g'); } - /** @override */ public get supportsColor(): boolean { return this._parentTerminalProvider.supportsColor; } - /** @override */ public get eolCharacter(): string { return this._parentTerminalProvider.eolCharacter; } - /** @override */ public write(data: string, severity: TerminalProviderSeverity): void { // We need to track newlines to ensure that the prefix is added to each line let currentIndex: number = 0; diff --git a/libraries/terminal/src/TerminalTransform.ts b/libraries/terminal/src/TerminalTransform.ts index e4de47486d4..1e4a2d3319b 100644 --- a/libraries/terminal/src/TerminalTransform.ts +++ b/libraries/terminal/src/TerminalTransform.ts @@ -62,8 +62,7 @@ export abstract class TerminalTransform extends TerminalWritable { this.preventDestinationAutoclose = !!options.preventDestinationAutoclose; } - /** @override */ - protected onClose(): void { + protected override onClose(): void { this.autocloseDestination(); } diff --git a/libraries/ts-command-line/src/parameters/CommandLineChoiceListParameter.ts b/libraries/ts-command-line/src/parameters/CommandLineChoiceListParameter.ts index d9bdde12df1..64a03318af2 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineChoiceListParameter.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineChoiceListParameter.ts @@ -92,8 +92,8 @@ export class CommandLineChoiceListParameter< return this._values; } - /** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */ - public appendToArgList(argList: string[]): void { + /** {@inheritDoc CommandLineParameterBase.appendToArgList} */ + public override appendToArgList(argList: string[]): void { if (this.values.length > 0) { for (const value of this.values) { argList.push(this.longName); diff --git a/libraries/ts-command-line/src/parameters/CommandLineChoiceParameter.ts b/libraries/ts-command-line/src/parameters/CommandLineChoiceParameter.ts index 2c69e7dfc33..1b2d6179008 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineChoiceParameter.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineChoiceParameter.ts @@ -118,8 +118,8 @@ export class CommandLineChoiceParameter extends return this._value; } - /** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */ - public appendToArgList(argList: string[]): void { + /** {@inheritDoc CommandLineParameterBase.appendToArgList} */ + public override appendToArgList(argList: string[]): void { if (this.value !== undefined) { argList.push(this.longName); argList.push(this.value); diff --git a/libraries/ts-command-line/src/parameters/CommandLineFlagParameter.ts b/libraries/ts-command-line/src/parameters/CommandLineFlagParameter.ts index e701ea3de4d..607280a9305 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineFlagParameter.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineFlagParameter.ts @@ -68,8 +68,8 @@ export class CommandLineFlagParameter extends CommandLineParameterBase { return this._value; } - /** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */ - public appendToArgList(argList: string[]): void { + /** {@inheritDoc CommandLineParameterBase.appendToArgList} */ + public override appendToArgList(argList: string[]): void { if (this.value) { argList.push(this.longName); } diff --git a/libraries/ts-command-line/src/parameters/CommandLineIntegerListParameter.ts b/libraries/ts-command-line/src/parameters/CommandLineIntegerListParameter.ts index 9fae6dc9d94..5fd23a989b9 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineIntegerListParameter.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineIntegerListParameter.ts @@ -75,8 +75,8 @@ export class CommandLineIntegerListParameter extends CommandLineParameterWithArg return this._values; } - /** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */ - public appendToArgList(argList: string[]): void { + /** {@inheritDoc CommandLineParameterBase.appendToArgList} */ + public override appendToArgList(argList: string[]): void { if (this.values.length > 0) { for (const value of this.values) { argList.push(this.longName); diff --git a/libraries/ts-command-line/src/parameters/CommandLineIntegerParameter.ts b/libraries/ts-command-line/src/parameters/CommandLineIntegerParameter.ts index 35bf8a7e559..8af7493e309 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineIntegerParameter.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineIntegerParameter.ts @@ -93,8 +93,8 @@ export class CommandLineIntegerParameter extends CommandLineParameterWithArgumen return this._value; } - /** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */ - public appendToArgList(argList: string[]): void { + /** {@inheritDoc CommandLineParameterBase.appendToArgList} */ + public override appendToArgList(argList: string[]): void { if (this.value !== undefined) { argList.push(this.longName); argList.push(this.value.toString()); diff --git a/libraries/ts-command-line/src/parameters/CommandLineRemainder.ts b/libraries/ts-command-line/src/parameters/CommandLineRemainder.ts index 06e1106632a..9af7c5b7f83 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineRemainder.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineRemainder.ts @@ -42,7 +42,7 @@ export class CommandLineRemainder { this._values.push(...data); } - /** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */ + /** {@inheritDoc CommandLineParameterBase.appendToArgList} */ public appendToArgList(argList: string[]): void { if (this.values.length > 0) { for (const value of this.values) { diff --git a/libraries/ts-command-line/src/parameters/CommandLineStringListParameter.ts b/libraries/ts-command-line/src/parameters/CommandLineStringListParameter.ts index c62eed59971..bf57de5992c 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineStringListParameter.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineStringListParameter.ts @@ -64,8 +64,8 @@ export class CommandLineStringListParameter extends CommandLineParameterWithArgu return this._values; } - /** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */ - public appendToArgList(argList: string[]): void { + /** {@inheritDoc CommandLineParameterBase.appendToArgList} */ + public override appendToArgList(argList: string[]): void { if (this.values.length > 0) { for (const value of this.values) { argList.push(this.longName); diff --git a/libraries/ts-command-line/src/parameters/CommandLineStringParameter.ts b/libraries/ts-command-line/src/parameters/CommandLineStringParameter.ts index 47947618f8d..3b2f0c5c9ad 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineStringParameter.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineStringParameter.ts @@ -91,8 +91,8 @@ export class CommandLineStringParameter extends CommandLineParameterWithArgument return this._value; } - /** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */ - public appendToArgList(argList: string[]): void { + /** {@inheritDoc CommandLineParameterBase.appendToArgList} */ + public override appendToArgList(argList: string[]): void { if (this.value !== undefined) { argList.push(this.longName); argList.push(this.value);