Skip to content

Commit e60db63

Browse files
committed
Rename IYamlFile -> IYamlApiFile
1 parent bdd87b0 commit e60db63

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎libraries/api-documenter/src/yaml/IYamlApiFile.ts‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
* TypeScript interface describing a Universal Reference YAML documentation file,
66
* as defined by typescript.schema.json.
77
*/
8-
export interface IYamlFile {
8+
export interface IYamlApiFile {
99
items: IYamlItem[];
1010
references?: IYamlReference[];
1111
}
1212

1313
/**
14-
* Part of the IYamlFile structure. Used to document exceptions that can be thrown
14+
* Part of the IYamlApiFile structure. Used to document exceptions that can be thrown
1515
* by a method, property, function, or constructor.
1616
*/
1717
export interface IYamlException {
@@ -20,12 +20,12 @@ export interface IYamlException {
2020
}
2121

2222
/**
23-
* Part of the IYamlFile structure. Represents the type of an IYamlItem.
23+
* Part of the IYamlApiFile structure. Represents the type of an IYamlItem.
2424
*/
2525
export type YamlTypeId = 'class' | 'constructor' | 'enum' | 'field' | 'interface' | 'method' | 'package' | 'property';
2626

2727
/**
28-
* Part of the IYamlFile structure. Represents basic API elements such as
28+
* Part of the IYamlApiFile structure. Represents basic API elements such as
2929
* classes, interfaces, members, etc.
3030
*/
3131
export interface IYamlItem {
@@ -46,7 +46,7 @@ export interface IYamlItem {
4646
}
4747

4848
/**
49-
* Part of the IYamlFile structure. Represents a method or function parameter.
49+
* Part of the IYamlApiFile structure. Represents a method or function parameter.
5050
*/
5151
export interface IYamlParameter {
5252
description?: string;
@@ -55,7 +55,7 @@ export interface IYamlParameter {
5555
}
5656

5757
/**
58-
* Part of the IYamlFile structure. Represents a reference to an item that is
58+
* Part of the IYamlApiFile structure. Represents a reference to an item that is
5959
* declared in a separate YAML file.
6060
*/
6161
export interface IYamlReference {
@@ -64,7 +64,7 @@ export interface IYamlReference {
6464
}
6565

6666
/**
67-
* Part of the IYamlFile structure. Indicates the open source Git repository
67+
* Part of the IYamlApiFile structure. Indicates the open source Git repository
6868
* where an IYamlItem is defined.
6969
*/
7070
export interface IYamlRemote {
@@ -74,7 +74,7 @@ export interface IYamlRemote {
7474
}
7575

7676
/**
77-
* Part of the IYamlFile structure. Documents the return value of a function
77+
* Part of the IYamlApiFile structure. Documents the return value of a function
7878
* or method.
7979
*/
8080
export interface IYamlReturn {
@@ -83,7 +83,7 @@ export interface IYamlReturn {
8383
}
8484

8585
/**
86-
* Part of the IYamlFile structure. Documents the source file where an IYamlItem is defined.
86+
* Part of the IYamlApiFile structure. Documents the source file where an IYamlItem is defined.
8787
*/
8888
export interface IYamlSource {
8989
id?: string;
@@ -93,7 +93,7 @@ export interface IYamlSource {
9393
}
9494

9595
/**
96-
* Part of the IYamlFile structure. Documents the type signature for an IYamlItem.
96+
* Part of the IYamlApiFile structure. Documents the type signature for an IYamlItem.
9797
*/
9898
export interface IYamlSyntax {
9999
content?: string;

‎libraries/api-documenter/src/yaml/YamlGenerator.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import {
1616

1717
import { DocItemSet, DocItem, DocItemKind, IDocItemSetResolveResult } from '../DocItemSet';
1818
import {
19-
IYamlFile,
19+
IYamlApiFile,
2020
IYamlItem,
2121
IYamlSyntax,
2222
IYamlParameter
23-
} from './IYamlFile';
23+
} from './IYamlApiFile';
2424
import { RenderingHelpers } from '../RenderingHelpers';
2525
import { MarkupBuilder } from '../MarkupBuilder';
2626
import { MarkdownRenderer, IMarkdownRenderApiLinkArgs } from '../MarkdownRenderer';
@@ -49,7 +49,7 @@ export class YamlGenerator {
4949
}
5050
}
5151

52-
private _visitDocItems(docItem: DocItem, parentYamlFile: IYamlFile | undefined): boolean {
52+
private _visitDocItems(docItem: DocItem, parentYamlFile: IYamlApiFile | undefined): boolean {
5353
const yamlItem: IYamlItem | undefined = this._generateYamlItem(docItem);
5454
if (!yamlItem) {
5555
return false;
@@ -61,7 +61,7 @@ export class YamlGenerator {
6161
}
6262
parentYamlFile.items.push(yamlItem);
6363
} else {
64-
const newYamlFile: IYamlFile = {
64+
const newYamlFile: IYamlApiFile = {
6565
items: []
6666
};
6767
newYamlFile.items.push(yamlItem);
@@ -270,7 +270,7 @@ export class YamlGenerator {
270270
});
271271
}
272272

273-
private _writeYamlFile(yamlFile: IYamlFile, docItem: DocItem): void {
273+
private _writeYamlFile(yamlFile: IYamlApiFile, docItem: DocItem): void {
274274
const yamlFilePath: string = this._getYamlFilePath(docItem);
275275

276276
if (docItem.kind === DocItemKind.Package) {

0 commit comments

Comments
 (0)