Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export class ExperimentalYamlDocumenter extends YamlDocumenter {
this._generateTocPointersMap(this._config.tocConfig);
}

/** @override */
protected buildYamlTocFile(apiItems: ReadonlyArray<ApiItem>): IYamlTocFile {
protected override buildYamlTocFile(apiItems: ReadonlyArray<ApiItem>): IYamlTocFile {
this._buildTocItems2(apiItems);
return this._config.tocConfig;
}
Expand Down
9 changes: 3 additions & 6 deletions apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -64,17 +63,15 @@ export class OfficeYamlDocumenter extends YamlDocumenter {
}
}

/** @override */
protected onGetTocRoot(): IYamlTocItem {
protected override onGetTocRoot(): IYamlTocItem {
return {
name: 'API reference',
href: 'overview.md',
items: []
};
}

/** @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);
Expand Down
10 changes: 6 additions & 4 deletions apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -156,8 +159,7 @@ export class CustomMarkdownEmitter extends MarkdownEmitter {
}
}

/** @override */
protected writeLinkTagWithCodeDestination(
protected override writeLinkTagWithCodeDestination(
docLinkTag: DocLinkTag,
context: IMarkdownEmitterContext<ICustomMarkdownEmitterOptions>
): void {
Expand Down
3 changes: 1 addition & 2 deletions apps/api-documenter/src/nodes/DocEmphasisSpan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
3 changes: 1 addition & 2 deletions apps/api-documenter/src/nodes/DocHeading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export class DocHeading extends DocNode {
}
}

/** @override */
public get kind(): string {
public override get kind(): string {
return CustomDocNodeKind.Heading;
}
}
6 changes: 2 additions & 4 deletions apps/api-documenter/src/nodes/DocNoteBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<DocNode | undefined> {
protected override onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
return [this.content];
}
}
6 changes: 2 additions & 4 deletions apps/api-documenter/src/nodes/DocTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export class DocTable extends DocNode {
}
}

/** @override */
public get kind(): string {
public override get kind(): string {
return CustomDocNodeKind.Table;
}

Expand All @@ -73,8 +72,7 @@ export class DocTable extends DocNode {
return row;
}

/** @override */
protected onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
protected override onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
return [this.header, ...this._rows];
}
}
3 changes: 1 addition & 2 deletions apps/api-documenter/src/nodes/DocTableCell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
6 changes: 2 additions & 4 deletions apps/api-documenter/src/nodes/DocTableRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export class DocTableRow extends DocNode {
}
}

/** @override */
public get kind(): string {
public override get kind(): string {
return CustomDocNodeKind.TableRow;
}

Expand Down Expand Up @@ -58,8 +57,7 @@ export class DocTableRow extends DocNode {
return cell;
}

/** @override */
protected onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
protected override onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
return this._cells;
}
}
10 changes: 6 additions & 4 deletions apps/heft/src/configuration/HeftPluginDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,10 @@ export class HeftLifecyclePluginDefinition extends HeftPluginDefinitionBase {

/**
* {@inheritDoc HeftPluginDefinitionBase.loadPluginAsync}
* @override
*/
public loadPluginAsync(logger: IScopedLogger): Promise<IHeftPlugin<HeftLifecycleSession, object | void>> {
public override loadPluginAsync(
logger: IScopedLogger
): Promise<IHeftPlugin<HeftLifecycleSession, object | void>> {
return super.loadPluginAsync(logger);
}
}
Expand All @@ -354,9 +355,10 @@ export class HeftTaskPluginDefinition extends HeftPluginDefinitionBase {

/**
* {@inheritDoc HeftPluginDefinitionBase.loadPluginAsync}
* @override
*/
public loadPluginAsync(logger: IScopedLogger): Promise<IHeftPlugin<HeftTaskSession, object | void>> {
public override loadPluginAsync(
logger: IScopedLogger
): Promise<IHeftPlugin<HeftTaskSession, object | void>> {
return super.loadPluginAsync(logger);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.58.2"
"packageVersion": "7.58.10"
}
]
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Loading