Skip to content

Commit bf70f36

Browse files
committed
Eliminate some warnings
1 parent e277075 commit bf70f36

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

‎build-tests/api-extractor-test-01/etc/api-extractor-test-01.api.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
// @public
22
class AmbientConsumer {
3-
// (undocumented)
43
builtinDefinition1(): Map<string, string>;
5-
// (undocumented)
64
builtinDefinition2(): Promise<void>;
7-
// (undocumented)
85
definitelyTyped(): jest.Context;
96
// WARNING: The type "IAmbientInterfaceExample" needs to be exported by the package (e.g. added to index.ts)
10-
// (undocumented)
117
localTypings(): IAmbientInterfaceExample;
128
}
139

‎build-tests/api-extractor-test-01/src/index.ts‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,33 @@ export interface ISimpleInterface {
2424
* @public
2525
*/
2626
export class AmbientConsumer {
27-
// Found via tsconfig.json's "lib" setting, which specifies the built-in "es2015.collection"
27+
/**
28+
* Found via tsconfig.json's "lib" setting, which specifies the built-in "es2015.collection"
29+
*/
2830
public builtinDefinition1(): Map<string, string> {
2931
return new Map<string, string>();
3032
}
3133

32-
// Found via tsconfig.json's "lib" setting, which specifies the built-in "es2015.promise"
34+
/**
35+
* Found via tsconfig.json's "lib" setting, which specifies the built-in "es2015.promise"
36+
*/
3337
public builtinDefinition2(): Promise<void> {
3438
return new Promise<void>(() => { /* */ });
3539
}
3640

37-
// Configured via tsconfig.json's "lib" setting, which specifies "@types/jest".
38-
// The emitted index.d.ts gets a reference like this: <reference types="jest" />
41+
/**
42+
* Configured via tsconfig.json's "lib" setting, which specifies "@types/jest".
43+
* The emitted index.d.ts gets a reference like this: <reference types="jest" />
44+
*/
3945
public definitelyTyped(): jest.Context {
4046
return {} as jest.Context;
4147
}
4248

43-
// Found via tsconfig.json's "include" setting point to a *.d.ts file.
44-
// This is an old-style Definitely Typed definition, which is the worst possible kind,
45-
// because consumers are expected to provide this, with no idea where it came from.
49+
/**
50+
* Found via tsconfig.json's "include" setting point to a *.d.ts file.
51+
* This is an old-style Definitely Typed definition, which is the worst possible kind,
52+
* because consumers are expected to provide this, with no idea where it came from.
53+
*/
4654
public localTypings(): IAmbientInterfaceExample {
4755
return {} as IAmbientInterfaceExample;
4856
}

0 commit comments

Comments
 (0)