Skip to content

Commit 136a19e

Browse files
authored
Merge branch 'master' into master
2 parents b42ac89 + 9418147 commit 136a19e

189 files changed

Lines changed: 3116 additions & 421 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/CODEOWNERS‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
.github/CODEOWNERS @iclanton @nickpape-msft @octogonz @patmill @aditima
2-
common/config/**/* @iclanton @nickpape-msft @octogonz @patmill @aditima
1+
.github/CODEOWNERS @iclanton @octogonz @patmill @apostolisms
2+
common/config/**/* @iclanton @octogonz @patmill @apostolisms
33

4-
common/reviews/**/* @iclanton @nickpape-msft @octogonz @mpasarin @aditima
4+
common/reviews/**/* @iclanton @octogonz @apostolisms
55

6-
apps/**/* @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
7-
build-tests/**/* @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
8-
core-build/**/* @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
9-
libraries/**/* @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
10-
stack/**/* @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
11-
webpack/**/* @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
12-
rush.json @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
13-
.gitattributes @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
14-
.gitignore @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
15-
README.md @iclanton @nickpape-msft @octogonz @aditima @lincoded @halfnibble
6+
apps/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
7+
build-tests/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
8+
core-build/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
9+
libraries/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
10+
stack/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
11+
webpack/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
12+
rush.json @iclanton @octogonz @apostolisms @lincoded @halfnibble
13+
.gitattributes @iclanton @octogonz @apostolisms @lincoded @halfnibble
14+
.gitignore @iclanton @octogonz @apostolisms @lincoded @halfnibble
15+
README.md @iclanton @octogonz @apostolisms @lincoded @halfnibble
1616

17-
libraries/load-themed-styles/**/* @iclanton @nickpape-msft @octogonz @dzearing @aditima
17+
libraries/load-themed-styles/**/* @iclanton @octogonz @dzearing @apostolisms

‎apps/api-documenter/CHANGELOG.json‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,47 @@
11
{
22
"name": "@microsoft/api-documenter",
33
"entries": [
4+
{
5+
"version": "7.3.3",
6+
"tag": "@microsoft/api-documenter_v7.3.3",
7+
"date": "Wed, 12 Jun 2019 19:12:33 GMT",
8+
"comments": {
9+
"dependency": [
10+
{
11+
"comment": "Updating dependency \"@microsoft/ts-command-line\" from `4.2.5` to `4.2.6`"
12+
},
13+
{
14+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.2\" from `0.3.18` to `0.3.19`"
15+
},
16+
{
17+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.66` to `6.0.67`"
18+
}
19+
]
20+
}
21+
},
22+
{
23+
"version": "7.3.2",
24+
"tag": "@microsoft/api-documenter_v7.3.2",
25+
"date": "Tue, 11 Jun 2019 00:48:06 GMT",
26+
"comments": {
27+
"patch": [
28+
{
29+
"comment": "Add support for emitting type parameters in the YamlDocumenter"
30+
}
31+
],
32+
"dependency": [
33+
{
34+
"comment": "Updating dependency \"@microsoft/api-extractor-model\" from `7.1.3` to `7.2.0`"
35+
},
36+
{
37+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.2\" from `0.3.17` to `0.3.18`"
38+
},
39+
{
40+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.65` to `6.0.66`"
41+
}
42+
]
43+
}
44+
},
445
{
546
"version": "7.3.1",
647
"tag": "@microsoft/api-documenter_v7.3.1",

‎apps/api-documenter/CHANGELOG.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Change Log - @microsoft/api-documenter
22

3-
This log was last generated on Thu, 06 Jun 2019 22:33:36 GMT and should not be manually modified.
3+
This log was last generated on Wed, 12 Jun 2019 19:12:33 GMT and should not be manually modified.
4+
5+
## 7.3.3
6+
Wed, 12 Jun 2019 19:12:33 GMT
7+
8+
*Version update only*
9+
10+
## 7.3.2
11+
Tue, 11 Jun 2019 00:48:06 GMT
12+
13+
### Patches
14+
15+
- Add support for emitting type parameters in the YamlDocumenter
416

517
## 7.3.1
618
Thu, 06 Jun 2019 22:33:36 GMT

‎apps/api-documenter/package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/api-documenter",
3-
"version": "7.3.1",
3+
"version": "7.3.3",
44
"description": "Read JSON files from api-extractor, generate documentation pages",
55
"repository": {
66
"type": "git",
@@ -15,16 +15,16 @@
1515
"api-documenter": "./bin/api-documenter"
1616
},
1717
"dependencies": {
18-
"@microsoft/api-extractor-model": "7.1.3",
18+
"@microsoft/api-extractor-model": "7.2.0",
1919
"@microsoft/node-core-library": "3.13.0",
20-
"@microsoft/ts-command-line": "4.2.5",
20+
"@microsoft/ts-command-line": "4.2.6",
2121
"@microsoft/tsdoc": "0.12.9",
2222
"colors": "~1.2.1",
2323
"js-yaml": "~3.13.1"
2424
},
2525
"devDependencies": {
26-
"@microsoft/rush-stack-compiler-3.2": "0.3.17",
27-
"@microsoft/node-library-build": "6.0.65",
26+
"@microsoft/rush-stack-compiler-3.2": "0.3.19",
27+
"@microsoft/node-library-build": "6.0.67",
2828
"@types/js-yaml": "3.12.1",
2929
"@types/node": "8.5.8",
3030
"gulp": "~3.9.1",

‎apps/api-documenter/src/documenters/YamlDocumenter.ts‎

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ import {
3333
ApiMethodSignature,
3434
ApiConstructor,
3535
ApiFunction,
36-
ApiReturnTypeMixin
36+
ApiReturnTypeMixin,
37+
ApiTypeParameterListMixin
3738
} from '@microsoft/api-extractor-model';
3839

3940
import {
@@ -328,11 +329,11 @@ export class YamlDocumenter {
328329
break;
329330
case ApiItemKind.Class:
330331
yamlItem.type = 'class';
331-
this._populateYamlClassOrInterface(yamlItem, apiItem);
332+
this._populateYamlClassOrInterface(yamlItem, apiItem as ApiClass);
332333
break;
333334
case ApiItemKind.Interface:
334335
yamlItem.type = 'interface';
335-
this._populateYamlClassOrInterface(yamlItem, apiItem);
336+
this._populateYamlClassOrInterface(yamlItem, apiItem as ApiInterface);
336337
break;
337338
case ApiItemKind.Method:
338339
case ApiItemKind.MethodSignature:
@@ -379,7 +380,27 @@ export class YamlDocumenter {
379380
return yamlItem as IYamlItem;
380381
}
381382

382-
private _populateYamlClassOrInterface(yamlItem: Partial<IYamlItem>, apiItem: ApiDocumentedItem): void {
383+
private _populateYamlTypeParameters(apiItem: ApiTypeParameterListMixin): IYamlParameter[] {
384+
const typeParameters: IYamlParameter[] = [];
385+
for (const apiTypeParameter of apiItem.typeParameters) {
386+
const typeParameter: IYamlParameter = {
387+
id: apiTypeParameter.name
388+
};
389+
390+
if (apiTypeParameter.tsdocTypeParamBlock) {
391+
typeParameter.description = this._renderMarkdown(apiTypeParameter.tsdocTypeParamBlock.content, apiItem);
392+
}
393+
394+
if (!apiTypeParameter.constraintExcerpt.isEmpty) {
395+
typeParameter.type = [ this._linkToUidIfPossible(apiTypeParameter.constraintExcerpt.text) ];
396+
}
397+
398+
typeParameters.push(typeParameter);
399+
}
400+
return typeParameters;
401+
}
402+
403+
private _populateYamlClassOrInterface(yamlItem: Partial<IYamlItem>, apiItem: ApiClass | ApiInterface): void {
383404
if (apiItem instanceof ApiClass) {
384405
if (apiItem.extendsType) {
385406
yamlItem.extends = [ this._linkToUidIfPossible(apiItem.extendsType.excerpt.text) ];
@@ -397,6 +418,11 @@ export class YamlDocumenter {
397418
yamlItem.extends.push(this._linkToUidIfPossible(extendsType.excerpt.text));
398419
}
399420
}
421+
422+
const typeParameters: IYamlParameter[] = this._populateYamlTypeParameters(apiItem);
423+
if (typeParameters.length) {
424+
yamlItem.syntax = { typeParameters };
425+
}
400426
}
401427

402428
if (apiItem.tsdocComment) {
@@ -462,6 +488,14 @@ export class YamlDocumenter {
462488
if (parameters.length) {
463489
syntax.parameters = parameters;
464490
}
491+
492+
if (ApiTypeParameterListMixin.isBaseClassOf(apiItem)) {
493+
const typeParameters: IYamlParameter[] = this._populateYamlTypeParameters(apiItem);
494+
if (typeParameters.length) {
495+
syntax.typeParameters = typeParameters;
496+
}
497+
}
498+
465499
}
466500

467501
private _populateYamlProperty(yamlItem: Partial<IYamlItem>, apiItem: ApiPropertyItem): void {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface IYamlException {
2727
* Part of the IYamlApiFile structure. Represents the type of an IYamlItem.
2828
*/
2929
export type YamlTypeId = 'class' | 'constructor' | 'enum' | 'field' | 'function' | 'interface'
30-
| 'method' | 'package' | 'property' | 'event';
30+
| 'method' | 'package' | 'property' | 'event' | 'typealias' | 'variable';
3131

3232
/**
3333
* Part of the IYamlApiFile structure. Represents basic API elements such as
@@ -112,5 +112,6 @@ export interface IYamlSource {
112112
export interface IYamlSyntax {
113113
content?: string;
114114
parameters?: IYamlParameter[];
115+
typeParameters?: IYamlParameter[];
115116
return?: IYamlReturn;
116117
}

‎apps/api-documenter/src/yaml/typescript.schema.json‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"$ref": "#/definitions/syntax"
130130
},
131131
"type": {
132-
"enum": [ "class", "constructor", "enum", "field", "function", "interface", "method", "package", "property", "event" ]
132+
"enum": [ "class", "constructor", "enum", "field", "function", "interface", "method", "package", "property", "event", "typealias", "variable" ]
133133
},
134134
"uid": {
135135
"type": "string",
@@ -221,6 +221,14 @@
221221
"content": {
222222
"type": "string"
223223
},
224+
"typeParameters": {
225+
"type": "array",
226+
"items": {
227+
"$ref": "#/definitions/parameter"
228+
},
229+
"minItems": 1,
230+
"uniqueItems": true
231+
},
224232
"parameters": {
225233
"type": "array",
226234
"items": {

‎apps/api-extractor-model/CHANGELOG.json‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
{
22
"name": "@microsoft/api-extractor-model",
33
"entries": [
4+
{
5+
"version": "7.2.0",
6+
"tag": "@microsoft/api-extractor-model_v7.2.0",
7+
"date": "Tue, 11 Jun 2019 00:48:06 GMT",
8+
"comments": {
9+
"patch": [
10+
{
11+
"comment": "Improve the .api.json deserializer to validate the schema version and support backwards compatibility"
12+
}
13+
],
14+
"minor": [
15+
{
16+
"comment": "Add API support for type parameters and type alias types"
17+
}
18+
]
19+
}
20+
},
421
{
522
"version": "7.1.3",
623
"tag": "@microsoft/api-extractor-model_v7.1.3",

‎apps/api-extractor-model/CHANGELOG.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# Change Log - @microsoft/api-extractor-model
22

3-
This log was last generated on Wed, 05 Jun 2019 19:12:34 GMT and should not be manually modified.
3+
This log was last generated on Tue, 11 Jun 2019 00:48:06 GMT and should not be manually modified.
4+
5+
## 7.2.0
6+
Tue, 11 Jun 2019 00:48:06 GMT
7+
8+
### Minor changes
9+
10+
- Add API support for type parameters and type alias types
11+
12+
### Patches
13+
14+
- Improve the .api.json deserializer to validate the schema version and support backwards compatibility
415

516
## 7.1.3
617
Wed, 05 Jun 2019 19:12:34 GMT

‎apps/api-extractor-model/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/api-extractor-model",
3-
"version": "7.1.3",
3+
"version": "7.2.0",
44
"description": "A helper library for loading and saving the .api.json files created by API Extractor",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)