Skip to content

Commit 92156f2

Browse files
committed
Fix more API Extractor warnings
1 parent 1243e23 commit 92156f2

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

apps/api-extractor-model/src/items/ApiDeclaredItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ApiDocumentedItem, IApiDocumentedItemJson, IApiDocumentedItemOptions }
55
import { Excerpt, ExcerptToken, IExcerptTokenRange, IExcerptToken } from '../mixins/Excerpt';
66

77
/**
8-
* Constructor options for {@link (ApiDeclaredItem:interface)}.
8+
* Constructor options for {@link ApiDeclaredItem}.
99
* @public
1010
*/
1111
export interface IApiDeclaredItemOptions extends IApiDocumentedItemOptions {

apps/api-extractor-model/src/mixins/ApiItemContainerMixin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const _membersByName: unique symbol = Symbol('ApiItemContainerMixin._membersByNa
3636
*
3737
* Examples of `ApiItemContainerMixin` child classes include `ApiModel`, `ApiPackage`, `ApiEntryPoint`,
3838
* and `ApiEnum`. But note that `Parameter` is not considered a "member" of an `ApiMethod`; this relationship
39-
* is modeled using {@link ApiParameterListMixin.parameters} instead of {@link ApiItemContainerMixin.members}.
39+
* is modeled using {@link (ApiParameterListMixin:interface).parameters} instead
40+
* of {@link (ApiItemContainerMixin:interface).members}.
4041
*
4142
* @public
4243
*/
@@ -70,7 +71,7 @@ export interface ApiItemContainerMixin extends ApiItem {
7071
}
7172

7273
/**
73-
* Mixin function for {@link (ApiDeclaredItem:interface)}.
74+
* Mixin function for {@link ApiDeclaredItem}.
7475
*
7576
* @param baseClass - The base class to be extended
7677
* @returns A child class that extends baseClass, adding the {@link (ApiItemContainerMixin:interface)} functionality.

apps/api-extractor-model/src/mixins/Excerpt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ExcerptToken {
4747
}
4848

4949
/**
50-
* This class is used by {@link (ApiDeclaredItem:interface)} to represent a source code excerpt containing
50+
* This class is used by {@link ApiDeclaredItem} to represent a source code excerpt containing
5151
* a TypeScript declaration.
5252
*
5353
* @remarks

apps/api-extractor-model/src/model/ApiModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import { DocDeclarationReference } from '@microsoft/tsdoc';
1717
* important information needed to generate documentation, without any reliance on the TypeScript compiler engine.
1818
*
1919
* An `ApiModel` acts as the root of a tree of objects that all inherit from the `ApiItem` base class.
20-
* The tree children are determined by the {@link ApiItemContainerMixin} mixin base class. The model contains
21-
* packages. Packages have an entry point (today, only one). And the entry point can contain various types
20+
* The tree children are determined by the {@link (ApiItemContainerMixin:interface)} mixin base class. The model
21+
* contains packages. Packages have an entry point (today, only one). And the entry point can contain various types
2222
* of API declarations. The container relationships might look like this:
2323
*
2424
* ```

apps/api-extractor-model/src/model/Parameter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface IParameterOptions {
3030
* }
3131
* ```
3232
*
33-
* `Parameter` objects belong to the {@link ApiParameterListMixin.parameters} collection.
33+
* `Parameter` objects belong to the {@link (ApiParameterListMixin:interface).parameters} collection.
3434
*
3535
* @public
3636
*/

apps/api-extractor/src/api/IExtractorConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export interface IExtractorTsdocMetadataConfig {
268268
}
269269

270270
/**
271-
* Used with {@link IExtractorMessageRoutingConfig.logLevel}.
271+
* Used with {@link IExtractorMessageReportingRuleConfig.logLevel}.
272272
*
273273
* @public
274274
*/

common/reviews/api/node-core-library.api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ export class InternalError extends Error {
309309

310310
// @public
311311
export interface IPackageJson extends INodePackageJson {
312-
// (undocumented)
313312
version: string;
314313
}
315314

libraries/node-core-library/src/IPackageJson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,6 @@ export interface IPackageJsonTsdocConfiguration {
175175
*/
176176
export interface IPackageJson extends INodePackageJson {
177177
// Make the "version" field non-optional.
178-
/** {@inheritDoc IPackageJson.version} */
178+
/** {@inheritDoc INodePackageJson.version} */
179179
version: string;
180180
}

libraries/node-core-library/src/PackageJsonLookup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ export class PackageJsonLookup {
178178
}
179179

180180
/**
181-
* This function is similar to {@link tryLoadPackageJsonFor}, except that it does not report an error if the
182-
* `version` field is missing from the package.json file.
181+
* This function is similar to {@link PackageJsonLookup.tryLoadPackageJsonFor}, except that it does not report
182+
* an error if the `version` field is missing from the package.json file.
183183
*/
184184
public tryLoadNodePackageJsonFor(fileOrFolderPath: string): INodePackageJson | undefined {
185185
const packageJsonFilePath: string | undefined = this.tryGetPackageJsonFilePathFor(fileOrFolderPath);
@@ -212,8 +212,8 @@ export class PackageJsonLookup {
212212
}
213213

214214
/**
215-
* This function is similar to {@link loadPackageJson}, except that it does not report an error if the
216-
* `version` field is missing from the package.json file.
215+
* This function is similar to {@link PackageJsonLookup.loadPackageJson}, except that it does not report an error
216+
* if the `version` field is missing from the package.json file.
217217
*/
218218
public loadNodePackageJson(jsonFilename: string): INodePackageJson {
219219
if (!FileSystem.exists(jsonFilename)) {

0 commit comments

Comments
 (0)